Add title on new sessions
This commit is contained in:
@@ -4,6 +4,7 @@ class SessionsController < ApplicationController
|
|||||||
before_action :skip_authorization
|
before_action :skip_authorization
|
||||||
|
|
||||||
def new
|
def new
|
||||||
|
@title = "Puzzle scoreboard"
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@@ -11,6 +12,7 @@ class SessionsController < ApplicationController
|
|||||||
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
|
||||||
|
@title = "Puzzle scoreboard"
|
||||||
redirect_to new_session_path, alert: "Try another email address or password."
|
redirect_to new_session_path, alert: "Try another email address or password."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user