20 lines
564 B
Text
20 lines
564 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"/>
|
|
<label for="username">Username: </label><input name="username" id="username"/>
|
|
<label for="password">Password: </label><input name="password" type="password" id="password"/>
|
|
<button type="submit">Login</button>
|
|
</form>
|