Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 4cafd83

Browse files
committed
feat: 🎸 set SSO login page ui
1 parent db3bf4c commit 4cafd83

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/server/src/assets/translations/cn/server.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"password": "密码",
104104
"remember-me": "记住我",
105105
"button": "登录",
106-
"sign_in_with_google": "使用 Google 登录"
106+
"sign_in_with_sso": "使用 {{ ssoIssuerName }} 登录"
107107
},
108108
"set_password": {
109109
"title": "设置密码",

apps/server/src/assets/translations/en/server.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"password": "Password",
113113
"remember-me": "Remember me",
114114
"button": "Login",
115-
"sign_in_with_google": "Sign in with Google"
115+
"sign_in_with_sso": "Sign in with {{ ssoIssuerName }}"
116116
},
117117
"set_password": {
118118
"title": "Set Password",

apps/server/src/assets/views/login.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

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

0 commit comments

Comments
 (0)