parent
91a6b54ed3
commit
4a25bcaf21
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +1,4 @@
|
|||||||
@page "/admin"
|
@page "/admin-manager"
|
||||||
|
@attribute [Authorize(Roles = "superadmin")]
|
||||||
|
|
||||||
<h3>Admin Page</h3>
|
<h3>Admin Page</h3>
|
@ -1,26 +0,0 @@
|
|||||||
@page "/login"
|
|
||||||
@layout AuthLayout
|
|
||||||
|
|
||||||
<h1 class="h2 font-weight-normal login-title">
|
|
||||||
Login
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<EditForm class="form-signin" OnValidSubmit="OnSubmit" Model="loginRequest">
|
|
||||||
<DataAnnotationsValidator />
|
|
||||||
|
|
||||||
<label for="inputUsername" class="sr-only">User Name</label>
|
|
||||||
<InputText id="inputUsername" class="form-control" @bind-Value="loginRequest.UserName" autofocus placeholder="Username" />
|
|
||||||
<ValidationMessage For="@(() => loginRequest.UserName)" />
|
|
||||||
|
|
||||||
<label for="inputPassword" class="sr-only">Password</label>
|
|
||||||
<InputText type="password" id="inputPassword" class="form-control" placeholder="Password" @bind-Value="loginRequest.Password" />
|
|
||||||
<ValidationMessage For="@(() => loginRequest.Password)" />
|
|
||||||
|
|
||||||
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
|
|
||||||
|
|
||||||
<label class="text-danger">@error</label>
|
|
||||||
|
|
||||||
<NavLink href="register">
|
|
||||||
<h6 class="font-weight-normal text-center">Create account</h6>
|
|
||||||
</NavLink>
|
|
||||||
</EditForm>
|
|
@ -1,29 +0,0 @@
|
|||||||
@page "/register"
|
|
||||||
@layout AuthLayout
|
|
||||||
|
|
||||||
<h1 class="h2 font-weight-normal login-title">
|
|
||||||
Register
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<EditForm class="form-signin" OnValidSubmit="OnSubmit" Model="registerRequest">
|
|
||||||
<DataAnnotationsValidator />
|
|
||||||
|
|
||||||
<label for="inputUsername" class="sr-only">User Name</label>
|
|
||||||
<InputText id="inputUsername" class="form-control" placeholder="Username" autofocus @bind-Value="@registerRequest.UserName" />
|
|
||||||
<ValidationMessage For="@(() => registerRequest.UserName)" />
|
|
||||||
|
|
||||||
<label for="inputPassword" class="sr-only">Password</label>
|
|
||||||
<InputText type="password" id="inputPassword" class="form-control" placeholder="Password" @bind-Value="@registerRequest.Password" />
|
|
||||||
<ValidationMessage For="@(() => registerRequest.Password)" />
|
|
||||||
|
|
||||||
<label for="inputPasswordConfirm" class="sr-only">Password Confirmation</label>
|
|
||||||
<InputText type="password" id="inputPasswordConfirm" class="form-control" placeholder="Password Confirmation" @bind-Value="@registerRequest.PasswordConfirm" />
|
|
||||||
<ValidationMessage For="@(() => registerRequest.PasswordConfirm)" />
|
|
||||||
|
|
||||||
<button class="btn btn-lg btn-primary btn-block" type="submit">Create account</button>
|
|
||||||
|
|
||||||
<label class="text-danger">@error</label>
|
|
||||||
<NavLink href="login">
|
|
||||||
<h6 class="font-weight-normal text-center">Already have an account? Click here to login</h6>
|
|
||||||
</NavLink>
|
|
||||||
</EditForm>
|
|
@ -1,6 +0,0 @@
|
|||||||
@inherits LayoutComponentBase
|
|
||||||
<div class="main">
|
|
||||||
<div class="content px-4">
|
|
||||||
@Body
|
|
||||||
</div>
|
|
||||||
</div>
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
e13dc85ac8575b541fad41b72bab609ff265de63b65bc0f33d2a8b0bbf51a86e
|
bc6ce0a1803d093335ef235f152bf0565ef2713f98235dececa4533846cd5536
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue