style: Use contains to check for row presence
This commit is contained in:
parent
7fa7b129c0
commit
77e8fd1744
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue