Skip to content

Commit

Permalink
doc: the reason why I've added a '/'
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Mar 27, 2017
1 parent f72eff3 commit 641180f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cli/users/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export function getTokenFromCookies(req, res) {
return cookies.get('x-access-token')
}

// the last test !/^\/abe\//.test(currentRoute + '/') has a "+ '/'" to take /abe route into account
export function isAbeRestrictedUrl(currentRoute) {
if( currentRoute.indexOf('/abe/users/forgot') > -1
|| currentRoute.indexOf('/abe/users/login') > -1
Expand Down

0 comments on commit 641180f

Please sign in to comment.