Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

better login message

  • Loading branch information...
commit 0898e4a07069d883b6932af59da9dc663af08896 1 parent cc1f3cf
christophe authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/check_or_redirect.js
View
8 lib/check_or_redirect.js
@@ -35,14 +35,12 @@ function check_or_redirect(options){
if(gateway){
queryopts.gateway = gateway;
}
- logger.debug('no current session, redirecting to CAS server') ;
+ var location = cas_host + login_service + '?' + querystring.stringify(queryopts);
+ logger.debug('no current session, redirecting to CAS server:', location) ;
// previous version had an if here, with a 403 if request was
// a json, but that never worked anyway
- res.writeHead(307, { 'location': cas_host+login_service
- +'?'
- +querystring.stringify(queryopts)
- });
+ res.writeHead(307, {location: location});
return res.end();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.