lib/kf5/controller_helper.rb in kf5-0.3.2 vs lib/kf5/controller_helper.rb in kf5-0.3.3
- old
+ new
@@ -19,10 +19,10 @@
query = URI.encode_www_form(params)
"https://#{KF5.configuration.domain}.kf5.com/user/remote?#{query}"
end
def redirect_to_kf5(options = {})
- if Helper.indifferent_access(options, :sso) == false
+ if Helper.indifferent_access(options, :sso) == false || KF5.configuration.key.nil?
redirect_to "https://#{KF5.configuration.domain}.kf5.com/"
else
redirect_to current_user_kf5_url(options)
end
end