Skip to content

Commit

Permalink
devlogin should be whitelisted
Browse files Browse the repository at this point in the history
  • Loading branch information
holman committed Oct 29, 2011
1 parent 560a3b1 commit dfdaf4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/play/app.rb
Expand Up @@ -36,8 +36,9 @@ def current_user
@login = current_user.login
else
if ENV['RACK_ENV'] != 'test'
redirect '/login' unless request.path_info =~ /\/login/ ||
request.path_info =~ /\/auth/ ||
redirect '/login' unless request.path_info =~ /\/login/ ||
request.path_info =~ /\/devlogin/ ||
request.path_info =~ /\/auth/ ||
request.path_info =~ /\/api/
end
end
Expand Down

0 comments on commit dfdaf4b

Please sign in to comment.