Skip to content

Commit

Permalink
get以外ではreturn_toはできないので認証情報の更新処理から除外
Browse files Browse the repository at this point in the history
  • Loading branch information
okbp committed Mar 2, 2018
1 parent a0ccf3e commit accf146
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tauth/controller_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def authenticate!

def refresh_current_user
return if (last_fetch = cookies.signed[:tauth_last_fetch] and last_fetch > Tauth.config.expires_in.ago)
return if request.request_method.upcase != "GET"

refresh_current_user!
end
Expand Down

1 comment on commit accf146

@okbp
Copy link
Author

@okbp okbp commented on accf146 Mar 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#4

Please sign in to comment.