Add title on new sessions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user