revert changes for patch authentication

This commit is contained in:
guillaume 2018-11-22 18:00:21 +01:00
parent a27c16e434
commit f23448be33
11 changed files with 133 additions and 52 deletions

View file

@ -520,10 +520,10 @@ if (Meteor.isServer) {
}
const disableRegistration = Settings.findOne().disableRegistration;
// If ldap, bypass the inviation code if the self registration isn't allowed.
// TODO : pay attention if ldap field in the user model change to another content ex : ldap field to connection_type
if (options.ldap || !disableRegistration) {
user.authenticationMethod = 'ldap';
if (!disableRegistration) {
if (options.ldap) {
user.authenticationMethod = 'ldap';
}
return user;
}