Neue agb seite implementiert

This commit is contained in:
MarcWieland
2026-06-09 00:15:06 +02:00
parent 1def618e34
commit ddb2b4af9f
4 changed files with 164 additions and 6 deletions
@@ -107,6 +107,11 @@
Required="true"
HelperText="Mindestens 6 Zeichen" />
<input type="text" style="display: none;" tabindex="-1" autocomplete="off" @bind="_honeypot" />
<MudCheckBox @bind-Value="_acceptAgb" Color="Color.Secondary" Class="mt-1">
<MudText Typo="Typo.body2">Ich akzeptiere die <a href="/agb" target="_blank" style="color: var(--mud-palette-secondary); text-decoration: underline; font-weight: 600;">AGB</a>.</MudText>
</MudCheckBox>
<MudButton ButtonType="ButtonType.Submit"
Variant="Variant.Filled"
Color="Color.Secondary"
@@ -114,7 +119,7 @@
Size="Size.Large"
StartIcon="@Icons.Material.Filled.PersonAdd"
Class="mt-2"
Disabled="_loading">
Disabled="_loading || !_acceptAgb">
@if (_loading)
{
<MudProgressCircular Size="Size.Small" Indeterminate="true" Class="mr-2" />
@@ -134,6 +139,7 @@
private string? _error;
private bool _loading;
private string _honeypot = "";
private bool _acceptAgb;
private readonly AuthModel _loginModel = new();
private readonly AuthModel _registerModel = new();
@@ -189,6 +195,11 @@
private async Task HandleRegister()
{
if (!_acceptAgb)
{
_error = "Du musst die AGB akzeptieren.";
return;
}
_loading = true;
_error = null;
try