pub fn reset_password(
    db: &Database,
    item: &ResetInput,
    mailer: &Mailer
) -> Result<(), (i32, &'static str)>
Expand description

reset

changes the password of the user associated with item.reset_token to item.new_password

Returns Result

  • Ok(())
  • Err([StatusCode], [Message])