mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fix omission of 'length'
This commit is contained in:
parent
f9b1862ddb
commit
cee3326ce3
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ module.exports = AuthenticationController =
|
||||||
|
|
||||||
_setRedirectInSession: (req, value) ->
|
_setRedirectInSession: (req, value) ->
|
||||||
if !value?
|
if !value?
|
||||||
value = if Object.keys(req.query) > 0 then "#{req.path}?#{querystring.stringify(req.query)}" else req.path
|
value = if Object.keys(req.query).length > 0 then "#{req.path}?#{querystring.stringify(req.query)}" else req.path
|
||||||
if req.session?
|
if req.session?
|
||||||
req.session.postLoginRedirect = value
|
req.session.postLoginRedirect = value
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue