ff073f8884
feat(fci.confirmation_code): add confirmation code to france_connect_informations feat(user_mailer.france_connect_confirmation_code): add confirmation by email mail method/preview/spec, pointing to merge_mail_with_existing_account (reuse existing method) feat(mail_merge): mail merge feat(merge.cannot_use_france_connect): same behaviour as callback clean(fci.confirmation_code): use same token for mail validation as merge feat(resend_france_connect/particulier/merge_confirmation): resend email with link. also enhance some trads, cleanup halfy finished refacto clean(tech): finalize story by plugging merge_with_new_account to email validation fix(deadspec): was removed fix(spec): broken after last refactoring lint(rubocop): space before parenthesis lint(haml-lint): yoohoooo space before = fix(lint): scss now :D Update app/assets/stylesheets/buttons.scss cleanup feat(france_connect): re-add confirm by email, with an option for confirmation by email instead of only confirmation by email fixup! Add confirmation by email when merging DC/FC accounts fix(lint): haml_spec failure
24 lines
647 B
Ruby
24 lines
647 B
Ruby
class UserMailerPreview < ActionMailer::Preview
|
||
def new_account_warning
|
||
UserMailer.new_account_warning(user)
|
||
end
|
||
|
||
def new_account_warning___with_procedure
|
||
procedure = Procedure.new(libelle: 'Dotation d’Équipement des Territoires Ruraux - Exercice 2019', path: 'dotation-etr')
|
||
UserMailer.new_account_warning(user, procedure)
|
||
end
|
||
|
||
def ask_for_merge
|
||
UserMailer.ask_for_merge(user, 'dircab@territoires.gouv.fr')
|
||
end
|
||
|
||
def france_connect_merge_confirmation
|
||
UserMailer.france_connect_merge_confirmation('new.exemple.fr', '123456')
|
||
end
|
||
|
||
private
|
||
|
||
def user
|
||
User.new(id: 10, email: 'test@exemple.fr')
|
||
end
|
||
end
|