Skip to content

Commit

Permalink
Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki
Browse files Browse the repository at this point in the history
  • Loading branch information
distler committed May 29, 2014
2 parents 970c0d2 + b12d229 commit 558e167
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/application_controller.rb
Expand Up @@ -255,6 +255,11 @@ def authorized?
cookies.signed[CGI.escape(@web_name)] == @web.password or
password_check(params['password']) or
(@web.published? and action_name == 's5')

rescue ActiveSupport::MessageVerifier::InvalidSignature
flash[:info] = 'Bad cookie. Please reauthenticate.'
cookies.signed[CGI.escape(@web_name)] = ''
return false
end

def is_post
Expand Down

0 comments on commit 558e167

Please sign in to comment.