mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-29 21:33:28 -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));
|
parent.authLog('setupDomainAuthStrategy', 'Azure profile: ' + JSON.stringify(userex));
|
||||||
var user = null;
|
var user = null;
|
||||||
if (userex != null) {
|
if (userex != null) {
|
||||||
var user = { sid: '~azure:' + userex.unique_name, name: userex.name, strategy: 'azure' };
|
var user = { sid: '~azure:' + userex.unique_name.toLowerCase(), name: userex.name, strategy: 'azure' };
|
||||||
if (typeof userex.email == 'string') { user.email = userex.email; }
|
if (typeof userex.email == 'string') { user.email = userex.email.toLowerCase(); }
|
||||||
}
|
}
|
||||||
return done(null, user);
|
return done(null, user);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user