Website Summary Files Commits Branches @commit @diff @stats
path: root / ExamTemplate / Web / Views / User / Profile.cshtml
diff options
context:
space:
mode:
Commit82d270a66b8ffca28e321f29b2eb90b2412ac9a7 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-05-08 18:10:08 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-05-08 18:10:08 +0300
Filesbd7e985592a0d8d5ec31b590b3c52d403e17e140 /ExamTemplate/Web/Views/User/Profile.cshtml
it-kariera-exam-template-82d270a66b8ffca28e321f29b2eb90b2412ac9a7.tar
it-kariera-exam-template-82d270a66b8ffca28e321f29b2eb90b2412ac9a7.tar.gz
it-kariera-exam-template-82d270a66b8ffca28e321f29b2eb90b2412ac9a7.zip
Parenta1e46b76a1299e35b1ac8cae69e77c66d74224a6 (diff)
Implemented authorization; Replaced Role with IdentityRole<Guid>; Renamed UserController to AccountController, updated links
1 files changed, 0 insertions, 27 deletions
-rw-r--r--ExamTemplate/Web/Views/User/Profile.cshtml27
diff --git a/ExamTemplate/Web/Views/User/Profile.cshtml b/ExamTemplate/Web/Views/User/Profile.cshtml
deleted file mode 100644
index 4120766..0000000
--- a/ExamTemplate/Web/Views/User/Profile.cshtml
+++ /dev/null
@@ -1,27 +0,0 @@
-@using Microsoft.AspNetCore.Identity
-
-@inject SignInManager<User> SignInManager
-@inject UserManager<User> UserManager
-
-@model UserViewModel
-@{
- ViewData["Title"] = Model.Username + "'s Profile";
-}
-
-<p>
- <h2>
- @Model.FirstName @Model.LastName
- </h2>
- <div>
- @Model.Username
- </div>
- @if (SignInManager.IsSignedIn(User))
- {
- @if(UserManager.GetUserName(User) == Model.Username)
- {
- <form asp-controller="User" asp-action="EditProfile" method="get">
- <input type="submit" value="Edit Profile">
- </form>
- }
- }
-</p>