From 82d270a66b8ffca28e321f29b2eb90b2412ac9a7 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 8 May 2021 18:10:08 +0300 Subject: Implemented authorization; Replaced Role with IdentityRole; Renamed UserController to AccountController, updated links --- ExamTemplate/Web/Views/Account/Profile.cshtml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ExamTemplate/Web/Views/Account/Profile.cshtml (limited to 'ExamTemplate/Web/Views/Account/Profile.cshtml') diff --git a/ExamTemplate/Web/Views/Account/Profile.cshtml b/ExamTemplate/Web/Views/Account/Profile.cshtml new file mode 100644 index 0000000..c6f3e5c --- /dev/null +++ b/ExamTemplate/Web/Views/Account/Profile.cshtml @@ -0,0 +1,27 @@ +@using Microsoft.AspNetCore.Identity + +@inject SignInManager SignInManager +@inject UserManager UserManager + +@model UserViewModel +@{ + ViewData["Title"] = Model.Username + "'s Profile"; +} + +

+

+ @Model.FirstName @Model.LastName +

+
+ @Model.Username +
+ @if (SignInManager.IsSignedIn(User)) + { + @if(UserManager.GetUserName(User) == Model.Username) + { +
+ +
+ } + } +

-- cgit v1.2.3