]> cat aescling's git repositories - mastodon.git/commitdiff
Replace bypass option with bypass_sign_in (#7867)
authorShuhei Kitagawa <shuheiktgw@users.noreply.github.com>
Thu, 21 Jun 2018 01:41:49 +0000 (10:41 +0900)
committerYamagishi Kazutoshi <ykzts@desire.sh>
Thu, 21 Jun 2018 01:41:49 +0000 (10:41 +0900)
app/controllers/auth/confirmations_controller.rb

index a240425cd8f40d4a530aa93aa26529c028ff377c..068e71cada69c03012bdd1cefbef079b72af92e2 100644 (file)
@@ -10,7 +10,7 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
     return unless request.patch? && params[:user]
     if @user.update(user_params)
       @user.skip_reconfirmation!
-      sign_in(@user, bypass: true)
+      bypass_sign_in(@user)
       redirect_to root_path, notice: I18n.t('devise.confirmations.send_instructions')
     else
       @show_errors = true