Fix session creation warning
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
sto
2026-04-22 13:27:14 +02:00
parent 29de2235c6
commit 6aba5547f2

View File

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