mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-09 06:11:04 +01:00
Finalize count_local_users function
This commit is contained in:
parent
d21030566c
commit
2281bcefc6
1 changed files with 2 additions and 4 deletions
|
@ -88,10 +88,8 @@ impl Users {
|
|||
/// a password thus returning only real accounts on this instance.
|
||||
#[tracing::instrument(skip(self))]
|
||||
pub fn count_local_users(&self) -> Result<usize> {
|
||||
self.userid_password.iter().map(|(key, value)| {
|
||||
|
||||
});
|
||||
Ok(1)
|
||||
let n = self.userid_password.iter().filter(|(_, bytes)| bytes.len() > 0).count();
|
||||
Ok(n)
|
||||
}
|
||||
|
||||
/// Find out which user an access token belongs to.
|
||||
|
|
Loading…
Reference in a new issue