redmine-login_unexpectedly_logs_you_out_fix-DrewDahl.patch

Andrew Dahl, 2012-12-16 23:59

Download (1.13 KB)

View differences:

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
32
-