fix: SEC16

This commit is contained in:
timedout committed 2026-06-20 16:03:37 +01:00
1 parent 1ba90deeba
commit 62b58e1a6a
3 files changed
+11

No files matched your search

+4
View File
@@ -87,6 +87,10 @@ pub(crate) async fn handle_login(
return Err!(Request(InvalidParam("User ID does not belong to this homeserver")));
}
if services.users.is_deactivated(&user_id).await? {
return Err!(Request(UserDeactivated("This account has been deactivated.")));
}
if services.users.is_locked(&user_id).await? {
return Err!(Request(UserLocked("This account has been locked.")));
}