Browse Source

feat: skip reconfirmation on update

CLDC-2491-Change-address-bug
natdeanlewissoftwire 1 year ago
parent
commit
595b1f485a
  1. 1
      app/controllers/users_controller.rb
  2. 12
      app/mailers/devise_notify_mailer.rb

1
app/controllers/users_controller.rb

@ -46,6 +46,7 @@ class UsersController < ApplicationController
end
def update
@user.skip_reconfirmation!
if @user.update(user_params)
if @user == current_user
bypass_sign_in @user

12
app/mailers/devise_notify_mailer.rb

@ -69,16 +69,4 @@ private
personalisation(record, token, url, username:),
)
end
# def unlock_instructions(record, token, opts = {})
# super
# end
#
# def email_changed(record, opts = {})
# super
# end
#
# def password_change(record, opts = {})
# super
# end
end

Loading…
Cancel
Save