diff --git a/src/service/password_reset/mod.rs b/src/service/password_reset/mod.rs index 85903c9c..52636b19 100644 --- a/src/service/password_reset/mod.rs +++ b/src/service/password_reset/mod.rs @@ -58,7 +58,14 @@ impl Service { return Err!("Cannot issue a password reset token for the server user"); } - if self.services.users.origin(&user_id).await? != "password" { + if self + .services + .users + .origin(&user_id) + .await + .unwrap_or_else(|_| "password".to_owned()) + != "password" + { return Err!("Cannot issue a password reset token for non-internal user {user_id}"); }