X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b8fad531e47641fc402203edc732c1484d28733a..ad2739347b5fc7c57d8b7131580fda10cc77f108:/app/controllers/concerns/user_methods.rb?ds=inline diff --git a/app/controllers/concerns/user_methods.rb b/app/controllers/concerns/user_methods.rb index eb7d38988..8cba09827 100644 --- a/app/controllers/concerns/user_methods.rb +++ b/app/controllers/concerns/user_methods.rb @@ -51,7 +51,7 @@ module UserMethods flash[:notice] = t "accounts.update.success_confirm_needed" begin - UserMailer.email_confirm(user, user.tokens.create).deliver_later + UserMailer.email_confirm(user, user.generate_token_for(:new_email)).deliver_later rescue StandardError # Ignore errors sending email end