diff options
author | Daniel <git@baby-gnu.org> | 2021-08-25 15:40:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 17:40:56 +0200 |
commit | 5c21021176813313e656bf1c92177a930a1ca9cc (patch) | |
tree | 8f90cabc65d488f06259f3b548db09435decd2c1 /app | |
parent | 4562ada4b902aa1775329ab348ac1487f8a0acc7 (diff) |
Fix undefined variable for Auth::OmniauthCallbacksController (#16654)
The addition of authentication history broke the omniauth login with the following error: method=GET path=/auth/auth/cas/callback format=html controller=Auth::OmniauthCallbacksController action=cas status=500 error='NameError: undefined local variable or method `user' for #<Auth::OmniauthCallbacksController:0x00000000036290> Did you mean? @user' duration=435.93 view=0.00 db=36.19 * app/controllers/auth/omniauth_callbacks_controller.rb: fix variable name to `@user`
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/auth/omniauth_callbacks_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/auth/omniauth_callbacks_controller.rb b/app/controllers/auth/omniauth_callbacks_controller.rb index 7925e23cb..991a50b03 100644 --- a/app/controllers/auth/omniauth_callbacks_controller.rb +++ b/app/controllers/auth/omniauth_callbacks_controller.rb @@ -11,7 +11,7 @@ class Auth::OmniauthCallbacksController < Devise::OmniauthCallbacksController if @user.persisted? LoginActivity.create( - user: user, + user: @user, success: true, authentication_method: :omniauth, provider: provider, |