mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-07-14 03:23:48 +08:00
🔄refactor: 使用OpenIddict 重构Identity
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
@using IdentityServer4.Extensions
|
||||
@{
|
||||
@{
|
||||
string name = null;
|
||||
if (!true.Equals(ViewData["signed-out"]))
|
||||
{
|
||||
name = Context.User?.GetDisplayName();
|
||||
name = Context.User?.Identity?.IsAuthenticated == true ? Context.User.Identity.Name : null;
|
||||
}
|
||||
}
|
||||
<!DOCTYPE html>
|
||||
|
||||
Reference in New Issue
Block a user