Timebot implementation

This commit is contained in:
MarcWieland
2026-06-08 23:34:08 +02:00
parent b8b01871ed
commit 82626bc5b3
17 changed files with 802 additions and 209 deletions
@@ -106,6 +106,7 @@
@bind-Value="_registerModel.Password"
Required="true"
HelperText="Mindestens 6 Zeichen" />
<input type="text" style="display: none;" tabindex="-1" autocomplete="off" @bind="_honeypot" />
<MudButton ButtonType="ButtonType.Submit"
Variant="Variant.Filled"
Color="Color.Secondary"
@@ -132,6 +133,7 @@
private int _activeTab = 0;
private string? _error;
private bool _loading;
private string _honeypot = "";
private readonly AuthModel _loginModel = new();
private readonly AuthModel _registerModel = new();
@@ -191,7 +193,7 @@
_error = null;
try
{
var (user, error) = await AuthService.RegisterAsync(_registerModel.Username, _registerModel.Password);
var (user, error) = await AuthService.RegisterAsync(_registerModel.Username, _registerModel.Password, _honeypot);
if (user != null)
{
Nav.NavigateTo("/", forceLoad: true);