Skip to content
Snippets Groups Projects
Commit 7f592069 authored by Shuhei Kitagawa's avatar Shuhei Kitagawa Committed by Yamagishi Kazutoshi
Browse files

Replace bypass option with bypass_sign_in (#7867)

parent 459394a0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment