style: Use contains to check for row presence

This commit is contained in:
timedout 2026-01-07 17:26:41 +00:00
parent 7fa7b129c0
commit 77e8fd1744
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F

View file

@ -304,7 +304,7 @@ impl Service {
pub fn enable_login(&self, user_id: &UserId) { self.db.userid_logindisabled.remove(user_id); }
pub async fn is_login_disabled(&self, user_id: &UserId) -> bool {
self.db.userid_logindisabled.get(user_id).await.is_ok()
self.db.userid_logindisabled.contains(user_id).await
}
/// Check if account is active, infallible