Project

General

Profile

Bug #4457 » 0001-fixes-4457-Session-fixation-new-session-IDs-are-not-.patch

v1 patch - Dominic Cleal, 03/10/2014 08:12 AM

View differences:

app/controllers/users_controller.rb
# Called from the login form.
# Stores the user id in the session and redirects required URL or default homepage
def login
session[:user] = User.current = nil
session[:locale] = nil
User.current = nil
reset_session
if request.post?
user = User.try_to_login(params[:login]['login'].downcase, params[:login]['password'])
if user.nil?
(1-1/4)