mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 19:44:09 +00:00
Confirmation Emails: Add way to resend (#287)
* Add way to resend confirmation email. * Resend confirmation email if user sets it to the same as pending * I10n: No pending email change
This commit is contained in:
@@ -2,6 +2,14 @@ class UsersController < ApplicationController
|
||||
before_action :set_user
|
||||
before_action :ensure_admin, only: %i[reset reset_with_sample_data]
|
||||
|
||||
def resend_confirmation_email
|
||||
if @user.resend_confirmation_email
|
||||
redirect_to settings_profile_path, notice: t(".success")
|
||||
else
|
||||
redirect_to settings_profile_path, alert: t("no_pending_change")
|
||||
end
|
||||
end
|
||||
|
||||
def update
|
||||
@user = Current.user
|
||||
|
||||
|
||||
Reference in New Issue
Block a user