Skip to main content

issue_password_reset_link

Function issue_password_reset_link 

Source
pub async fn issue_password_reset_link(
    pool: &Pool,
    org: &Org,
    username: &str,
) -> Result<Option<String>, ExecError>
Expand description

A one-hour password-reset link for the active user username of org, whose tenant database is pool, or None when there is no such user.

For operators: it works for an account with no email on file, which the reset form cannot reach. The link is relative — prefix the site’s origin. It is valid on any admin router of this process, which signs with the same crate::signing::secret.

§Errors

Database errors from the user lookup.