aboutsummaryrefslogtreecommitdiff
path: root/ExamTemplate/Web/Views/Account/Login.cshtml
blob: 82a90c005c4f3f4c5353d08b997d867ca21c680c (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 ExamTemplate.Web.Models.User.LoginUserViewModel
@{
	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>