Skip to main content

queue_verification_email_best_effort

Function queue_verification_email_best_effort 

Source
pub async fn queue_verification_email_best_effort(
    conn: &mut PgConnection,
    enabled: bool,
    user_id: Uuid,
)
Expand description

Queues the mail without letting a failure propagate: no signup or email change may be rolled back because the mail queue or the template is unavailable.

enabled is ApplicationConfiguration::enable_email_ownership_verification, passed in because sync_tmc_users has no ApplicationConfiguration to read it from.