-
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 a policy specific namespace.
- Loading branch information
Showing
5 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...lers/admin/policies/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,19 @@ | ||
module Admin | ||
module Policies | ||
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 | ||
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
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