Fix session creation warning
This commit is contained in:
@@ -8,7 +8,7 @@ class SessionsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
if user = User.authenticate_by(params.permit(:email_address, :password))
|
if user = User.authenticate_by(params.except(:authenticity_token, :commit).permit(:email_address, :password))
|
||||||
start_new_session_for user
|
start_new_session_for user
|
||||||
redirect_to after_authentication_url, notice: t("sessions.new.notice")
|
redirect_to after_authentication_url, notice: t("sessions.new.notice")
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user