website/Website/Views/Account/Login.cshtml

40 lines
798 B
Text

@model LoginViewModel
@{
ViewBag.Title = "Login";
}
@if (!string.IsNullOrEmpty(Model.ReturnUrl)) {
<div>Please log in to perform that action</div>
}
@if (Model.FailedAttempt) {
<div>Could not log in with those credentials</div>
}
<form method="post" action="login">
<input type="hidden" name="returnUrl" value="@Model.ReturnUrl" />
<table>
<tr class="form-row">
<td>
<label for="username">Username: </label>
</td>
<td>
<input name="username" id="username" />
</td>
</tr>
<tr class="form-row">
<td>
<label for="password">Password: </label>
</td>
<td>
<input name="password" type="password" id="password" />
</td>
</tr>
<tr class="form-row">
<td colspan="2">
<button type="submit">Login</button>
</td>
</tr>
</table>
</form>