Merge pull request #1030 from chaotixkilla/fix-session-token-getter
Fix session token retriever
This commit is contained in:
commit
adecf3cabb
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ const reset2FA = (token, userID, code, context) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getToken = context => {
|
const getToken = context => {
|
||||||
if (_.isNil(context.req.cookies.lid) || _.isNil(context.req.session.user.id))
|
if (_.isNil(context.req.cookies['lamassu_sid']) || _.isNil(context.req.session.user.id))
|
||||||
throw new authErrors.AuthenticationError('Authentication failed')
|
throw new authErrors.AuthenticationError('Authentication failed')
|
||||||
|
|
||||||
return context.req.session.user.id
|
return context.req.session.user.id
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue