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