Tracing and dumping

This commit is contained in:
Nadja Reitzenstein
2022-03-15 19:56:41 +01:00
parent 48003ef51c
commit 2e5f343d52
8 changed files with 50 additions and 18 deletions

View File

@ -25,7 +25,6 @@ use std::sync::Arc;
pub mod db;
pub use crate::authentication::db::PassDB;
use crate::authorization::roles::Role;
use crate::db::LMDBorrow;
use crate::users::db::UserData;
@ -80,6 +79,10 @@ impl Users {
Ok(Self { userdb })
}
pub(crate) fn into_inner(self) -> &'static UserDB {
self.userdb
}
pub fn get_user(&self, uid: &str) -> Option<db::User> {
tracing::trace!(uid, "Looking up user");
self.userdb