Removed multipass check with SSO (#954)

Removed multipass check with SSO
pull/961/head
ShahanaFarooqui 2 years ago committed by GitHub
parent 0e03e0415f
commit ebf869f4cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -125,7 +125,7 @@ export class ConfigService {
this.common.rtl_secret2fa = config.secret2fa;
}
else {
if ((process.env.APP_PASSWORD && process.env.APP_PASSWORD.trim() !== '') || (config.multiPass && config.multiPass.trim() !== '') || (config.multiPassHashed && config.multiPassHashed.trim() !== '')) {
if (process.env.APP_PASSWORD && process.env.APP_PASSWORD.trim() !== '') {
this.errMsg = this.errMsg + '\nRTL Password cannot be set with SSO. Please set SSO as 0 or remove password.';
}
}

@ -127,7 +127,7 @@ export class ConfigService {
}
this.common.rtl_secret2fa = config.secret2fa;
} else {
if ((process.env.APP_PASSWORD && process.env.APP_PASSWORD.trim() !== '') || (config.multiPass && config.multiPass.trim() !== '') || (config.multiPassHashed && config.multiPassHashed.trim() !== '')) {
if (process.env.APP_PASSWORD && process.env.APP_PASSWORD.trim() !== '') {
this.errMsg = this.errMsg + '\nRTL Password cannot be set with SSO. Please set SSO as 0 or remove password.';
}
}

Loading…
Cancel
Save