29 lines
858 B
Plaintext
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> |