diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-21 16:31:14 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-21 16:31:14 -0600 |
commit | f40716f48a25809d197ba2abf32ce150b7b73efa (patch) | |
tree | 3356ea055ddee37517467c1f0ed4f4b98f655e6f /app/controllers/omniauth_callbacks_controller.rb | |
parent | deb62183edbd9111691f62a4f6a9febb1fcd79f7 (diff) | |
download | gitlab-ce-f40716f48a25809d197ba2abf32ce150b7b73efa.tar.gz |
No more and/or
Diffstat (limited to 'app/controllers/omniauth_callbacks_controller.rb')
-rw-r--r-- | app/controllers/omniauth_callbacks_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/omniauth_callbacks_controller.rb b/app/controllers/omniauth_callbacks_controller.rb index 3ab7e6e0658..58d50ad647b 100644 --- a/app/controllers/omniauth_callbacks_controller.rb +++ b/app/controllers/omniauth_callbacks_controller.rb @@ -122,7 +122,7 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController else error_message = @user.errors.full_messages.to_sentence - redirect_to omniauth_error_path(oauth['provider'], error: error_message) and return + return redirect_to omniauth_error_path(oauth['provider'], error: error_message) end end |