blob: daa3f3ee0996077c8ce63cd6635852e0ce45cc79 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
@model LoginUserWebModel
@{
ViewData["Title"] = "Login";
}
<form asp-controller="Account" asp-action="Login" method="post">
<input type="text" asp-for="Username" placeholder="Username">
<span asp-validation-for="Username" class="form-error"></span>
<input type="password" asp-for="Password" placeholder="Password">
<span asp-validation-for="Password" class="form-error"></span>
<input type="submit">
@if (Model != null)
{
<p class="form-error">
Invalid credentials or account doesn't exist!
</p>
}
</form>
|