diff --git a/src/app/[locale]/(protected)/settings/security/page.tsx b/src/app/[locale]/(protected)/settings/security/page.tsx
index bab5416..04577ee 100644
--- a/src/app/[locale]/(protected)/settings/security/page.tsx
+++ b/src/app/[locale]/(protected)/settings/security/page.tsx
@@ -1,12 +1,17 @@
import { DeleteAccountCard } from '@/components/settings/security/delete-account-card';
import { PasswordCardWrapper } from '@/components/settings/security/password-card-wrapper';
+import { websiteConfig } from '@/config/website';
export default function SecurityPage() {
+ const credentialLoginEnabled = websiteConfig.auth.enableCredentialLogin;
+
return (
-
+ {credentialLoginEnabled && (
+
+ )}
diff --git a/src/components/auth/login-form.tsx b/src/components/auth/login-form.tsx
index 8538de9..4f29a7c 100644
--- a/src/components/auth/login-form.tsx
+++ b/src/components/auth/login-form.tsx
@@ -57,6 +57,9 @@ export const LoginForm = ({
const [isPending, setIsPending] = useState(false);
const [showPassword, setShowPassword] = useState(false);
+ // Check if credential login is enabled
+ const credentialLoginEnabled = websiteConfig.auth.enableCredentialLogin;
+
// turnstile captcha schema
const turnstileEnabled = websiteConfig.features.enableTurnstileCaptcha;
const captchaSiteKey = process.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY;
@@ -148,102 +151,111 @@ export const LoginForm = ({
bottomButtonHref={`${Routes.Register}`}
className={cn('', className)}
>
-