Replace bypass option with bypass_sign_in (#7867)

lolsob-rspec
Shuhei Kitagawa 2018-06-21 10:41:49 +09:00 committed by Yamagishi Kazutoshi
parent 2828f36415
commit d61e647e8a
1 changed files with 1 additions and 1 deletions

View 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