This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
trainav/trainav.web/Pages/Register.cshtml
2022-04-29 15:01:16 +02:00

29 lines
858 B
Plaintext

@page
@using Microsoft.AspNetCore.Http
@model RegisterModel
@{
ViewData["Title"] = "Register";
if (HttpContext.Session.GetString("authorized") == "true") {
Response.Redirect("/");
return;
}
}
<h3>@ViewData["Title"]</h3>
<form method="POST">
<div class="form-group">
<label for="InputUser">Username</label>
<input type="text" class="form-control" id="InputUser" name="user">
</div>
<div class="form-group">
<label for="InputPassword">Password</label>
<input type="password" class="form-control" id="InputPassword" name="pass">
</div>
<div class="form-group">
<label for="InputCode">Register Code</label>
<input type="password" class="form-control" id="InputCode" name="code">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>