aboutsummaryrefslogtreecommitdiff
path: root/ExamTemplate/Web/Views
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-05-08 18:10:08 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-05-08 18:10:08 +0300
commit82d270a66b8ffca28e321f29b2eb90b2412ac9a7 (patch)
treebd7e985592a0d8d5ec31b590b3c52d403e17e140 /ExamTemplate/Web/Views
parenta1e46b76a1299e35b1ac8cae69e77c66d74224a6 (diff)
downloadit-kariera-exam-template-82d270a66b8ffca28e321f29b2eb90b2412ac9a7.tar
it-kariera-exam-template-82d270a66b8ffca28e321f29b2eb90b2412ac9a7.tar.gz
it-kariera-exam-template-82d270a66b8ffca28e321f29b2eb90b2412ac9a7.zip
Implemented authorization; Replaced Role with IdentityRole<Guid>; Renamed UserController to AccountController, updated links
Diffstat (limited to 'ExamTemplate/Web/Views')
-rw-r--r--ExamTemplate/Web/Views/Account/Edit.cshtml (renamed from ExamTemplate/Web/Views/User/EditProfile.cshtml)0
-rw-r--r--ExamTemplate/Web/Views/Account/Login.cshtml (renamed from ExamTemplate/Web/Views/User/Login.cshtml)2
-rw-r--r--ExamTemplate/Web/Views/Account/Profile.cshtml (renamed from ExamTemplate/Web/Views/User/Profile.cshtml)2
-rw-r--r--ExamTemplate/Web/Views/Account/Register.cshtml (renamed from ExamTemplate/Web/Views/User/Register.cshtml)2
-rw-r--r--ExamTemplate/Web/Views/Shared/_Navbar.cshtml8
5 files changed, 7 insertions, 7 deletions
diff --git a/ExamTemplate/Web/Views/User/EditProfile.cshtml b/ExamTemplate/Web/Views/Account/Edit.cshtml
index da08d9a..da08d9a 100644
--- a/ExamTemplate/Web/Views/User/EditProfile.cshtml
+++ b/ExamTemplate/Web/Views/Account/Edit.cshtml
diff --git a/ExamTemplate/Web/Views/User/Login.cshtml b/ExamTemplate/Web/Views/Account/Login.cshtml
index 7cb5ac5..688c547 100644
--- a/ExamTemplate/Web/Views/User/Login.cshtml
+++ b/ExamTemplate/Web/Views/Account/Login.cshtml
@@ -3,7 +3,7 @@
ViewData["Title"] = "Login";
}
-<form asp-controller="User" asp-action="Login" method="post">
+<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>
diff --git a/ExamTemplate/Web/Views/User/Profile.cshtml b/ExamTemplate/Web/Views/Account/Profile.cshtml
index 4120766..c6f3e5c 100644
--- a/ExamTemplate/Web/Views/User/Profile.cshtml
+++ b/ExamTemplate/Web/Views/Account/Profile.cshtml
@@ -19,7 +19,7 @@
{
@if(UserManager.GetUserName(User) == Model.Username)
{
- <form asp-controller="User" asp-action="EditProfile" method="get">
+ <form asp-controller="Account" asp-action="Edit" method="get">
<input type="submit" value="Edit Profile">
</form>
}
diff --git a/ExamTemplate/Web/Views/User/Register.cshtml b/ExamTemplate/Web/Views/Account/Register.cshtml
index 3b7f6d9..d255287 100644
--- a/ExamTemplate/Web/Views/User/Register.cshtml
+++ b/ExamTemplate/Web/Views/Account/Register.cshtml
@@ -1,6 +1,6 @@
@model ExamTemplate.Web.Models.User.RegisterUserViewModel
@{
- ViewData["Title"] = "Register";
+ ViewData["Title"] = "Register";
}
<form asp-controller="User" asp-action="Register" method="post">
diff --git a/ExamTemplate/Web/Views/Shared/_Navbar.cshtml b/ExamTemplate/Web/Views/Shared/_Navbar.cshtml
index 7ae8f50..0ec5c4d 100644
--- a/ExamTemplate/Web/Views/Shared/_Navbar.cshtml
+++ b/ExamTemplate/Web/Views/Shared/_Navbar.cshtml
@@ -13,18 +13,18 @@
<section>
@if (SignInManager.IsSignedIn(User))
{
- <a asp-controller="User" asp-action="Profile" asp-route-username="@UserManager.GetUserName(User)">
+ <a asp-controller="Account" asp-action="Profile" asp-route-username="@UserManager.GetUserName(User)">
@UserManager.GetUserName(User)
</a>
- <form asp-controller="User" asp-action="Logout" method="post">
+ <form asp-controller="Account" asp-action="Logout" method="post">
<input type="submit" value="Logout">
</form>
}
else
{
- <a asp-controller="User" asp-action="Login">Login</a>
- <a asp-controller="User" asp-action="Register">Register</a>
+ <a asp-controller="Account" asp-action="Login">Login</a>
+ <a asp-controller="Account" asp-action="Register">Register</a>
}
</section>
</div>