Fix call for new session path
This commit is contained in:
parent
284d8881f9
commit
156caecb21
2 changed files with 2 additions and 2 deletions
|
@ -11,6 +11,6 @@ class ApplicationController < ActionController::Base
|
||||||
private
|
private
|
||||||
|
|
||||||
def require_authorization
|
def require_authorization
|
||||||
redirect_to new_sessions_path unless authorized?
|
redirect_to new_session_path unless authorized?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -12,7 +12,7 @@ class SessionsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
if Rails.configuration.entrance_exam_token != params[:token]
|
if Rails.configuration.entrance_exam_token != params[:token]
|
||||||
redirect_to new_sessions_path
|
redirect_to new_session_path
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue