Fix session creation warning
This commit is contained in:
@@ -8,7 +8,7 @@ class SessionsController < ApplicationController
|
||||
end
|
||||
|
||||
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
|
||||
redirect_to after_authentication_url, notice: t("sessions.new.notice")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user