瀏覽代碼

fix omission of 'length'

Shane Kilkelly 10 年之前
父節點
當前提交
cee3326ce3
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      services/web/app/coffee/Features/Authentication/AuthenticationController.coffee

+ 1 - 1
services/web/app/coffee/Features/Authentication/AuthenticationController.coffee

@@ -191,7 +191,7 @@ module.exports = AuthenticationController =
 
 	_setRedirectInSession: (req, 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?
 			req.session.postLoginRedirect = value