-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add button to resend provider verification email
The provider can only start the verification process via the link in the email. If the provider has lost this email we need a mechanisim for the ops team to resend the email. As this admin logic is specific only to the FE policy we've opted to move the controller into it's own namespace
- Loading branch information
Showing
4 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
app/controllers/admin/further_education_payments/provider_verification_emails_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module Admin | ||
module FurtherEducationPayments | ||
class ProviderVerificationEmailsController < Admin::BaseAdminController | ||
before_action :ensure_service_operator | ||
|
||
def create | ||
claim = Claim.find(params[:claim_id]) | ||
|
||
ClaimMailer.further_education_payment_provider_verification_email(claim).deliver_later | ||
|
||
flash[:notice] = "Verification email sent to #{claim.school.name}" | ||
|
||
redirect_back(fallback_location: admin_claim_path(claim)) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters