Add title on new sessions
Some checks failed
CI / scan_ruby (push) Failing after 19s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 14s
CI / test (push) Failing after 35s

This commit is contained in:
sto
2025-11-24 09:57:30 +01:00
parent d59090cded
commit 6ec4a89907

View File

@@ -4,6 +4,7 @@ class SessionsController < ApplicationController
before_action :skip_authorization
def new
@title = "Puzzle scoreboard"
end
def create
@@ -11,6 +12,7 @@ class SessionsController < ApplicationController
start_new_session_for user
redirect_to after_authentication_url, notice: t("sessions.new.notice")
else
@title = "Puzzle scoreboard"
redirect_to new_session_path, alert: "Try another email address or password."
end
end