feat: 🎸 set SSO login page ui

This commit is contained in:
Jin 2025-06-06 17:18:52 +02:00 committed by JYC333
parent db3bf4c12c
commit 4cafd83c25
3 changed files with 4 additions and 4 deletions

View File

@ -103,7 +103,7 @@
"password": "密码",
"remember-me": "记住我",
"button": "登录",
"sign_in_with_google": "使用 Google 登录"
"sign_in_with_sso": "使用 {{ ssoIssuerName }} 登录"
},
"set_password": {
"title": "设置密码",

View File

@ -112,7 +112,7 @@
"password": "Password",
"remember-me": "Remember me",
"button": "Login",
"sign_in_with_google": "Sign in with Google"
"sign_in_with_sso": "Sign in with {{ ssoIssuerName }}"
},
"set_password": {
"title": "Set Password",

View File

@ -26,8 +26,8 @@
<% if (ssoEnabled) { %>
<a href="/authenticate" class="google-login-btn">
<img src="<%= assetPath %>/images/google-logo.svg" alt="Google logo">
<%= t("login.sign_in_with_google") %>
<img src="<%= ssoIssuerIcon.length === 0 ? assetPath + '/images/google-logo.svg' : ssoIssuerIcon %>" alt="<%= ssoIssuerName %>">
<%= t("login.sign_in_with_sso", { ssoIssuerName: ssoIssuerName }) %>
</a>
<% } else { %>
<form action="login" method="POST">