diff --git a/src/api/client/session.rs b/src/api/client/session.rs index d295a5b3..11ea06b7 100644 --- a/src/api/client/session.rs +++ b/src/api/client/session.rs @@ -186,7 +186,7 @@ pub(crate) async fn handle_login( return Err!(Request(Unknown("User ID does not belong to this homeserver"))); } - if services.users.is_locked(&user_id)? { + if services.users.is_locked(&user_id).await? { return Err(Error::BadRequest(ErrorKind::UserLocked, "This account has been locked.")); }