mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
🐛 fix: rename docker image and update docs for v2 (#11911)
This commit is contained in:
@@ -185,6 +185,22 @@ const DEPRECATED_CHECKS = [
|
||||
'Microsoft Entra ID provider has been renamed to Microsoft. Please update your environment variables.',
|
||||
name: 'Microsoft Entra ID',
|
||||
},
|
||||
{
|
||||
docUrl: MIGRATION_DOC_BASE,
|
||||
getVars: () => {
|
||||
const hasEmailService =
|
||||
process.env['SMTP_HOST'] || process.env['EMAIL_SERVICE_PROVIDER'] === 'resend';
|
||||
const hasEmailVerification = process.env['AUTH_EMAIL_VERIFICATION'] === '1';
|
||||
if (hasEmailService && !hasEmailVerification) {
|
||||
return ['AUTH_EMAIL_VERIFICATION'];
|
||||
}
|
||||
return [];
|
||||
},
|
||||
message:
|
||||
'Email service is configured but email verification is disabled. Consider setting AUTH_EMAIL_VERIFICATION=1 to verify user email ownership during registration.',
|
||||
name: 'Email Verification',
|
||||
severity: 'warning',
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user