Skip to main content

update_user_info

Function update_user_info 

Source
pub async fn update_user_info(
    conn: &mut PgConnection,
    user_id: Uuid,
    email: &str,
    first_name: &str,
    last_name: &str,
    country: &str,
    email_communication_consent: bool,
) -> Result<UserDetail, Error>
Expand description

Writes the whole profile form, including the derived users.email_domain.

On an address change the clear_email_verification trigger nulls email_verified_at and email_verified_method, so a caller wanting fresh proof must mail a new verification link.