If email accounts are disabled, allow email users to switch account type to one of the available types (#4517)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
be17e05d73
Коммит
b46ced78de
@@ -928,8 +928,9 @@ export default class SecurityTab extends React.Component {
|
|||||||
numMethods = config.EnableLdap === 'true' ? numMethods + 1 : numMethods;
|
numMethods = config.EnableLdap === 'true' ? numMethods + 1 : numMethods;
|
||||||
numMethods = config.EnableSaml === 'true' ? numMethods + 1 : numMethods;
|
numMethods = config.EnableSaml === 'true' ? numMethods + 1 : numMethods;
|
||||||
|
|
||||||
|
// If there are other sign-in methods and either email is enabled or the user's account is email, then allow switching
|
||||||
let signInSection;
|
let signInSection;
|
||||||
if (config.EnableSignUpWithEmail === 'true' && numMethods > 0) {
|
if ((config.EnableSignUpWithEmail === 'true' || user.auth_service === '') && numMethods > 0) {
|
||||||
signInSection = this.createSignInSection();
|
signInSection = this.createSignInSection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user