Skip to main content

seed_email_ownership_verification_templates

Function seed_email_ownership_verification_templates 

Source
async fn seed_email_ownership_verification_templates(
    conn: &mut PgConnection,
) -> Result<()>
Expand description

The sender looks the account’s pending code up at send time and substitutes {{CODE}}, as it does for the login and account deletion codes.

A migration cannot insert a template row using an enum value it adds itself, so in dev and tests the verify_email_address templates come only from here.