feat: add TOS and Privacy Policy to Register page
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
0cc14d11ac
commit
7bd31ea7b5
1 changed files with 6 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
||||||
@inject AuthenticationStateProvider authStateProvider
|
@inject AuthenticationStateProvider authStateProvider
|
||||||
@inject NavigationManager navManager
|
@inject NavigationManager navManager
|
||||||
|
|
||||||
<PageTitle>Register - Buttletboards</PageTitle>
|
<PageTitle>Register - BulletBoards</PageTitle>
|
||||||
|
|
||||||
<div class="login">
|
<div class="login">
|
||||||
<form>
|
<form>
|
||||||
|
@ -19,13 +19,16 @@
|
||||||
</RadzenFormField>
|
</RadzenFormField>
|
||||||
<br/>
|
<br/>
|
||||||
<RadzenCheckBox @bind-Value=@is18 Name="is_18"/>
|
<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/>
|
||||||
<br/>
|
<br/>
|
||||||
<RadzenButton Click=@login Text="register" ButtonStyle="ButtonStyle.Secondary"/>
|
<RadzenButton Click=@login Text="register" ButtonStyle="ButtonStyle.Secondary"/>
|
||||||
</form>
|
</form>
|
||||||
<br/>
|
<br/>
|
||||||
<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/>
|
<br/>
|
||||||
@if (msg != null)
|
@if (msg != null)
|
||||||
{
|
{
|
||||||
|
@ -50,7 +53,7 @@
|
||||||
msg = "Checking...";
|
msg = "Checking...";
|
||||||
if (!is18)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
if (!Email.Contains("@") || !Email.Contains("."))
|
if (!Email.Contains("@") || !Email.Contains("."))
|
||||||
|
|
Loading…
Reference in a new issue