名称Branding变更

This commit is contained in:
biss committed 2026-09-29 10:42:28 +08:00
1 parent c74c1e3914
commit 8b5103d542
41 files changed
+282 -93

No files matched your search

+3 -3
View File
@@ -321,13 +321,13 @@ public sealed class SsoController(
SsoAuthSchemes.LoginProvider,
ticket.Subject);
if (subjectOwner is not null && subjectOwner.Id != user.Id)
return BindingConflict("该统一身份账号已绑定其他教务系统账号。");
return BindingConflict("该统一身份账号已绑定其他平台账号。");
var keycloakLogins = (await userManager.GetLoginsAsync(user))
.Where(x => x.LoginProvider == SsoAuthSchemes.LoginProvider)
.ToList();
if (keycloakLogins.Any(x => x.ProviderKey != ticket.Subject))
return BindingConflict("该教务系统账号已绑定其他统一身份账号。");
return BindingConflict("该平台账号已绑定其他统一身份账号。");
if (subjectOwner is null)
{
@@ -563,7 +563,7 @@ public sealed class SsoController(
Unauthorized(new ProblemDetails
{
Title = "账户绑定失败",
Detail = "教务系统账号或密码不正确,或账号已停用。",
Detail = "平台账号或密码不正确,或账号已停用。",
Status = StatusCodes.Status401Unauthorized
});