mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-14 20:11:52 +00:00
Fixed handleStrategyLogin() server exception.
This commit is contained in:
parent
7f986bd7c4
commit
6f234f83fc
1 changed files with 3 additions and 3 deletions
|
@ -2573,10 +2573,10 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||||
// This is called after a successful Oauth to Twitter, Google, GitHub...
|
// This is called after a successful Oauth to Twitter, Google, GitHub...
|
||||||
function handleStrategyLogin(req, res) {
|
function handleStrategyLogin(req, res) {
|
||||||
const domain = checkUserIpAddress(req, res);
|
const domain = checkUserIpAddress(req, res);
|
||||||
const authStrategy = req.user.strategy
|
|
||||||
if (domain == null) { return; }
|
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));
|
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
|
// Check if any group related options exist
|
||||||
var userMemberships = [];
|
var userMemberships = [];
|
||||||
|
|
Loading…
Reference in a new issue