mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-28 07:16:18 +01:00
Replace bypass option with bypass_sign_in (#7867)
This commit is contained in:
parent
459394a020
commit
7f59206944
@ -10,7 +10,7 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
|
|||||||
return unless request.patch? && params[:user]
|
return unless request.patch? && params[:user]
|
||||||
if @user.update(user_params)
|
if @user.update(user_params)
|
||||||
@user.skip_reconfirmation!
|
@user.skip_reconfirmation!
|
||||||
sign_in(@user, bypass: true)
|
bypass_sign_in(@user)
|
||||||
redirect_to root_path, notice: I18n.t('devise.confirmations.send_instructions')
|
redirect_to root_path, notice: I18n.t('devise.confirmations.send_instructions')
|
||||||
else
|
else
|
||||||
@show_errors = true
|
@show_errors = true
|
||||||
|
Loading…
Reference in New Issue
Block a user