user login, register, hashed passwords, announcements start

This commit is contained in:
Dimitar Byalkov
2023-03-29 11:29:25 +02:00
parent e296205466
commit f858c47ff7
27 changed files with 623 additions and 125 deletions

View File

@@ -0,0 +1,30 @@
@page
@model WebApp.Pages.RegisterModel
@{
ViewData["Title"] = "Register";
}
<h1>@ViewData["Title"]</h1>
@if (ViewData["confirm"] != null)
{
<div class="alert alert-primary" role="alert">
@ViewData["confirm"]
</div>
}
<form method="post">
<div class="mb-3">
<label asp-for="MyUser.Role" class="form-label">Role: </label>
<input asp-for="MyUser.Role" class="form-control" />
</div>
<div class="mb-3">
<label asp-for="MyUser.Name" class="form-label">Name: </label>
<input asp-for="MyUser.Name" class="form-control" />
</div>
<div class="mb-3">
<label asp-for="MyUser.Password" class="form-label">Password: </label>
<input asp-for="MyUser.Password" class="form-control" />
</div>
<input type="submit" value="Submit" class="btn btn-primary" />
</form>