Skip to content

Commit

Permalink
Oops! Fixed the issue with the app not going to the secret page after…
Browse files Browse the repository at this point in the history
… login
  • Loading branch information
pokle committed Jan 7, 2013
1 parent a7dd53f commit c88480b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def username

before '/secure/*' do
if !session[:identity] then
session[:previous_url] = request['REQUEST_PATH']
@error = 'Sorry guacamole, you need to be logged in to do that'
session[:previous_url] = request.path
@error = 'Sorry guacamole, you need to be logged in to visit ' + request.path
halt erb(:login_form)
end
end
Expand Down

0 comments on commit c88480b

Please sign in to comment.