lib/osso/routes/oauth.rb in osso-0.0.5.pre.kappa vs lib/osso/routes/oauth.rb in osso-0.0.5.pre.lambda
- old
+ new
@@ -22,10 +22,10 @@
validate_oauth_request(env)
redirect "/auth/saml/#{enterprise.provider.id}" if enterprise.single_provider?
@providers = enterprise.identity_providers.not_pending
- erb :multiple_providers if @providers.count > 1
+ return erb :multiple_providers if @providers.count > 1
raise Osso::Error::MissingConfiguredIdentityProvider.new(domain: params[:domain])
rescue Osso::Error::Base => e
@error = e
erb :error