Feature #24013 » Value_keyword_replaced_with_symbols__in_application_controller.patch
app/controllers/application_controller.rb (date 1487076849000) | ||
---|---|---|
169 | 169 |
def logout_user |
170 | 170 |
if User.current.logged? |
171 | 171 |
cookies.delete(autologin_cookie_name) |
172 |
Token.where(["user_id = ? AND action = ?", User.current.id, 'autologin']).delete_all
|
|
173 |
Token.where(["user_id = ? AND action = ? AND value = ?", User.current.id, 'session', session[:tk]]).delete_all
|
|
172 |
Token.where(:user_id => User.current.id, :action => 'autologin').delete_all
|
|
173 |
Token.where(:user_id => User.current.id, :action => 'session', :value => session[:tk]).delete_all
|
|
174 | 174 |
self.logged_user = nil |
175 | 175 |
end |
176 | 176 |
end |
- « Previous
- 1
- …
- 9
- 10
- 11
- Next »