Skip to content

Commit f0cc000

Browse files
committed
Send a verification email if email is updated through api
1 parent 8bd8631 commit f0cc000

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/controllers/api/v8/users_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ def update_email
171171
elsif @user.email.casecmp(new_email) != 0
172172
@user.email = new_email
173173
@user.email_verified = false
174+
UserMailer.email_confirmation(@user, params[:origin], params[:language]).deliver_now
174175
end
175176
end
176177

0 commit comments

Comments
 (0)