mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-09-11 08:55:32 +03:00
Fixed handleStrategyLogin() server exception.
This commit is contained in:
parent
7f986bd7c4
commit
6f234f83fc
@ -2573,10 +2573,10 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||
// This is called after a successful Oauth to Twitter, Google, GitHub...
|
||||
function handleStrategyLogin(req, res) {
|
||||
const domain = checkUserIpAddress(req, res);
|
||||
const authStrategy = req.user.strategy
|
||||
if (domain == null) { return; }
|
||||
if ((req.user != null) && (req.user.sid != null) && (req.user.strategy != null)) {
|
||||
const authStrategy = req.user.strategy
|
||||
parent.debug('authlog', `${authStrategy.toUpperCase()}: Verified user: ${JSON.stringify(req.user, null, 4)}` + JSON.stringify(req.user));
|
||||
if ((req.user != null) && (req.user.sid != null)) {
|
||||
|
||||
// Check if any group related options exist
|
||||
var userMemberships = [];
|
||||
|
Loading…
Reference in New Issue
Block a user