Reinstate email changes
This commit is contained in:
committed by
Mike Dalessio
parent
4d8b3ed719
commit
56c41d45eb
@@ -0,0 +1,13 @@
|
||||
class IdentityMailerPreview < ActionMailer::Preview
|
||||
def email_change_confirmation
|
||||
new_email_address = "new.email@example.com"
|
||||
user = User.all.sample
|
||||
token = user.send(:generate_email_address_change_token, to: new_email_address)
|
||||
|
||||
IdentityMailer.email_change_confirmation(
|
||||
email_address: new_email_address,
|
||||
token: token,
|
||||
user: user
|
||||
)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user