Fix call for new session path

This commit is contained in:
Charlotte Van Petegem 2025-05-21 15:31:29 +02:00
parent 284d8881f9
commit 156caecb21
Signed by: chvp
SSH key fingerprint: SHA256:s9rb8jBVfdahqWHuBAcHCBP1wmj4eYQXZfqgz4H3E9E
2 changed files with 2 additions and 2 deletions

View file

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

View file

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