diff --git a/web/src/components/auth/LoginForm.js b/web/src/components/auth/LoginForm.js
index ec28dba8..1e92b5ff 100644
--- a/web/src/components/auth/LoginForm.js
+++ b/web/src/components/auth/LoginForm.js
@@ -442,21 +442,29 @@ const LoginForm = () => {
-
- {t('或')}
-
+ {(status.github_oauth || status.oidc_enabled || status.wechat_login || status.linuxdo_oauth || status.telegram_oauth) && (
+ <>
+
+ {t('或')}
+
-
-
+
+
+
+ >
+ )}
+
+
+ {t('没有账户?')} {t('注册')}
@@ -503,7 +511,7 @@ const LoginForm = () => {
};
return (
-
+
{/* 背景图片容器 - 放大并保持居中 */}
{
}
return (
-
+
{/* 背景图片容器 - 放大并保持居中 */}
{
}
return (
-
+
{/* 背景图片容器 - 放大并保持居中 */}
{
-
- {t('或')}
-
+ {(status.github_oauth || status.oidc_enabled || status.wechat_login || status.linuxdo_oauth || status.telegram_oauth) && (
+ <>
+
+ {t('或')}
+
-
-
-
+
+
+
+ >
+ )}
{t('已有账户?')} {t('登录')}
@@ -549,7 +553,7 @@ const RegisterForm = () => {
};
return (
-