This commit is contained in:
wanghu
2026-09-02 10:52:13 +08:00
parent 9938260704
commit 117b58359b
5 changed files with 8 additions and 9 deletions
-1
View File
@@ -210,7 +210,6 @@ namespace YhCore.WebApi
await context.Response.WriteAsync("未登录(SSO 未开启或 Cookie 失效)");
return;
}
var name = user.Identity?.Name ?? "-";
var id = user.FindFirst(System.Security.Claims.ClaimTypes.NameIdentifier)?.Value ?? "-";
var school = user.FindFirst("schoolname")?.Value ?? "-";