👥 fix: Reinstate Default Social Login Values (#1811)

* fix: social logins accidentally removed default in AppService, reinstated and added test

* chore: move birthday to OTHER section and make disabled by default
This commit is contained in:
Danny Avila 2024-02-15 08:20:06 -05:00 committed by GitHub
parent 60b1d1332c
commit 637a1a41c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 25 additions and 14 deletions

View file

@ -11,6 +11,7 @@ const configureSocialLogins = require('./socialLogins');
const { connectDb, indexSync } = require('~/lib/db');
const AppService = require('./services/AppService');
const noIndex = require('./middleware/noIndex');
const { isEnabled } = require('~/server/utils');
const { logger } = require('~/config');
const routes = require('./routes');
@ -53,7 +54,7 @@ const startServer = async () => {
passport.use(await jwtLogin());
passport.use(passportLogin());
if (ALLOW_SOCIAL_LOGIN?.toLowerCase() === 'true') {
if (isEnabled(ALLOW_SOCIAL_LOGIN)) {
configureSocialLogins(app);
}