fix: Await future

This commit is contained in:
timedout 2026-01-06 21:54:29 +00:00
parent 88a35e139d
commit 247bc15659
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F

View file

@ -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."));
}