25 lines
653 B
Plaintext
25 lines
653 B
Plaintext
|
@page
|
||
|
@using Microsoft.AspNetCore.Http
|
||
|
@model LoginModel
|
||
|
|
||
|
@{
|
||
|
ViewData["Title"] = "Login";
|
||
|
if (!string.IsNullOrWhiteSpace(HttpContext.Session.GetString("authenticatedUser"))) {
|
||
|
Response.Redirect("/Dashboard");
|
||
|
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>
|
||
|
<button type="submit" class="btn btn-primary">Submit</button>
|
||
|
</form>
|