mirror of
https://github.com/edumeet/edumeet.git
synced 2026-07-28 13:33:53 +00:00
Add a check after failure redirect.
When query param is empty.
This commit is contained in:
parent
6a0a35978f
commit
648fbe847a
1 changed files with 12 additions and 6 deletions
|
|
@ -417,14 +417,20 @@ async function setupAuth()
|
|||
app.get('/auth/login', (req, res, next) =>
|
||||
{
|
||||
logger.debug('/auth/login');
|
||||
const state = {
|
||||
peerId : req.query.peerId,
|
||||
roomId : req.query.roomId
|
||||
};
|
||||
|
||||
if (authStrategy== 'saml' || authStrategy=='local')
|
||||
let state;
|
||||
|
||||
if (req.query.peerId && req.query.roomId)
|
||||
{
|
||||
req.session.authState=state;
|
||||
state = {
|
||||
peerId : req.query.peerId,
|
||||
roomId : req.query.roomId
|
||||
};
|
||||
|
||||
if (authStrategy== 'saml' || authStrategy=='local')
|
||||
{
|
||||
req.session.authState=state;
|
||||
}
|
||||
}
|
||||
|
||||
if (authStrategy === 'local' && !(req.user && req.password))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue