]> cat aescling's git repositories - mastodon.git/commit
Fix undefined variable for Auth::OmniauthCallbacksController (#16654)
authorDaniel <git@baby-gnu.org>
Wed, 25 Aug 2021 15:40:56 +0000 (15:40 +0000)
committerGitHub <noreply@github.com>
Wed, 25 Aug 2021 15:40:56 +0000 (17:40 +0200)
commit5c21021176813313e656bf1c92177a930a1ca9cc
tree8f90cabc65d488f06259f3b548db09435decd2c1
parent4562ada4b902aa1775329ab348ac1487f8a0acc7
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`
app/controllers/auth/omniauth_callbacks_controller.rb