fix error
This commit is contained in:
parent
726d9c5718
commit
522bcd1e33
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue