Patch #12611 ยป redmine-login_unexpectedly_logs_you_out_fix-DrewDahl.patch
app/controllers/account_controller.rb | ||
---|---|---|
25 | 25 |
# Login request and validation |
26 | 26 |
def login |
27 | 27 |
if request.get? |
28 |
logout_user |
|
28 |
if User.current.logged? |
|
29 |
redirect_to home_url |
|
30 |
end |
|
29 | 31 |
else |
30 | 32 |
authenticate_user |
31 | 33 |
end |