aboutsummaryrefslogtreecommitdiff
path: root/ExamTemplate/Web/Views/User/Login.cshtml
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-05-07 11:59:29 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-05-07 11:59:29 +0300
commit8f7dabf274b5e428fc32f19a3c8848eacab01090 (patch)
treeb738b66fa6621ed88b199e820702cae16422f9ba /ExamTemplate/Web/Views/User/Login.cshtml
parentbd2ebdd29e03425a8314a91b64a5943df83b7559 (diff)
downloadit-kariera-exam-template-8f7dabf274b5e428fc32f19a3c8848eacab01090.tar
it-kariera-exam-template-8f7dabf274b5e428fc32f19a3c8848eacab01090.tar.gz
it-kariera-exam-template-8f7dabf274b5e428fc32f19a3c8848eacab01090.zip
Added view model validation for register and login
Diffstat (limited to 'ExamTemplate/Web/Views/User/Login.cshtml')
-rw-r--r--ExamTemplate/Web/Views/User/Login.cshtml4
1 files changed, 4 insertions, 0 deletions
diff --git a/ExamTemplate/Web/Views/User/Login.cshtml b/ExamTemplate/Web/Views/User/Login.cshtml
index 8df3013..b57dbbf 100644
--- a/ExamTemplate/Web/Views/User/Login.cshtml
+++ b/ExamTemplate/Web/Views/User/Login.cshtml
@@ -5,6 +5,10 @@
<form asp-controller="User" 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">
</form>