diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-24 13:52:34 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-24 13:52:34 +0200 |
| commit | cd36a46bbb5679ded1653f65bf4e8a74ae55100c (patch) | |
| tree | 3a3da946f5cdc5faf5b62289156c3f628ee72609 /lib | |
| parent | 02e1aefa24cdd0339995d14431713822f4bf4718 (diff) | |
Remove restful_authentication's forget_me relic
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/authenticated_system.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/authenticated_system.rb b/lib/authenticated_system.rb index 217f79e9..7accfaaa 100644 --- a/lib/authenticated_system.rb +++ b/lib/authenticated_system.rb | |||
| @@ -109,8 +109,6 @@ module AuthenticatedSystem | |||
| 109 | # havoc with forgery protection, and is only strictly necessary on login. | 109 | # havoc with forgery protection, and is only strictly necessary on login. |
| 110 | # However, **all session state variables should be unset here**. | 110 | # However, **all session state variables should be unset here**. |
| 111 | def logout_keeping_session! | 111 | def logout_keeping_session! |
| 112 | # Kill server-side auth cookie | ||
| 113 | @current_user.forget_me if @current_user.is_a? User | ||
| 114 | @current_user = false # not logged in, and don't do it for me | 112 | @current_user = false # not logged in, and don't do it for me |
| 115 | session[:user_id] = nil # keeps the session but kill our variable | 113 | session[:user_id] = nil # keeps the session but kill our variable |
| 116 | # explicitly kill any other session variables you set | 114 | # explicitly kill any other session variables you set |
