diff options
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.cshtml | 8 |
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> |
