feat: add TOS and Privacy Policy to Register page

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-06-13 20:12:17 +02:00
parent 0cc14d11ac
commit 7bd31ea7b5

View file

@ -6,7 +6,7 @@
@inject AuthenticationStateProvider authStateProvider
@inject NavigationManager navManager
<PageTitle>Register - Buttletboards</PageTitle>
<PageTitle>Register - BulletBoards</PageTitle>
<div class="login">
<form>
@ -19,13 +19,16 @@
</RadzenFormField>
<br/>
<RadzenCheckBox @bind-Value=@is18 Name="is_18"/>
<RadzenLabel Text="I am atleast 18 Years old." Component="is_18"/>
<RadzenLabel Text="I am atleast 18 Years old and I agree to the TOS and privacy policy." Component="is_18"/>
<br/>
<br/>
<RadzenButton Click=@login Text="register" ButtonStyle="ButtonStyle.Secondary"/>
</form>
<br/>
<br/>
<p>
Read the <a href="/sys/tos" target="_blank">TOS here</a> and the <a href="/sys/privacy" target="_blank">privacy policy here</a>.
</p>
<br/>
@if (msg != null)
{
@ -50,7 +53,7 @@
msg = "Checking...";
if (!is18)
{
msg = "You have to be atleast 18 years old to register.";
msg = "You have to be 18+ and agree to the TOS and Privacy Policy.";
return;
}
if (!Email.Contains("@") || !Email.Contains("."))