From e120ae0ee7a0f99fd5532aa694fab70bf01c7c4d Mon Sep 17 00:00:00 2001 From: si458 Date: Wed, 26 Nov 2025 18:25:56 +0000 Subject: [PATCH] make sure azure auth uses lowercase email #7449 Signed-off-by: si458 --- webserver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webserver.js b/webserver.js index bea23f9e..6cd749b7 100644 --- a/webserver.js +++ b/webserver.js @@ -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); }