Patch #14096 ยป Redirected_to_back_url_after_auto_login.diff
| app/controllers/account_controller.rb (working copy) | ||
|---|---|---|
| 26 | 26 |
def login |
| 27 | 27 |
if request.get? |
| 28 | 28 |
if User.current.logged? |
| 29 |
redirect_to home_url
|
|
| 29 |
redirect_to back_url
|
|
| 30 | 30 |
end |
| 31 | 31 |
else |
| 32 | 32 |
authenticate_user |