mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-29 13:28:07 -05:00
make sure azure auth uses lowercase email #7449
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
@@ -7826,8 +7826,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||
parent.authLog('setupDomainAuthStrategy', 'Azure profile: ' + JSON.stringify(userex));
|
||||
var user = null;
|
||||
if (userex != null) {
|
||||
var user = { sid: '~azure:' + userex.unique_name, name: userex.name, strategy: 'azure' };
|
||||
if (typeof userex.email == 'string') { user.email = userex.email; }
|
||||
var user = { sid: '~azure:' + userex.unique_name.toLowerCase(), name: userex.name, strategy: 'azure' };
|
||||
if (typeof userex.email == 'string') { user.email = userex.email.toLowerCase(); }
|
||||
}
|
||||
return done(null, user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user