fix error

This commit is contained in:
chiu 2020-04-16 21:04:30 +08:00
parent 726d9c5718
commit 522bcd1e33
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,6 @@ Rails.application.routes.draw do
locales = Site.first.in_use_locales rescue I18n.available_locales
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
get 'ntnu_oauth2/', to: 'sso_login_box#ntnu_oauth2_sign_in'
get 'ntnu_oauth2', to: 'sso_login_box#ntnu_oauth2_sign_in'
end
end

View File

@ -4,7 +4,7 @@ module SsoLoginBox
initializer "sso_login_box" do
OrbitApp.registration "SsoLoginBox", :type => "ModuleApp" do
base_url File.expand_path File.dirname(__FILE__)
set_keyword_contstraints ['/sso/tku_redirect']
set_keyword_contstraints ['/ntnu_oauth2']
end
end
end