Add a couple logging messages
This commit is contained in:
parent
67fe997eee
commit
eca5c2fd44
|
@ -116,6 +116,8 @@ impl NotSignedInUser {
|
|||
if self.manager.users.contains_key(username.as_str())? {
|
||||
Err(super::UserManagerError::UsernameNotUnique)
|
||||
} else {
|
||||
info!("User {} registered!", username);
|
||||
|
||||
let mut newser = RegisteredUser::new(
|
||||
username,
|
||||
Some(self.certificate.clone()),
|
||||
|
@ -177,6 +179,8 @@ impl NotSignedInUser {
|
|||
}
|
||||
}
|
||||
|
||||
let certhash = UserManager::hash_certificate(&self.certificate);
|
||||
info!("User {} attached certificate with hash {:x}", username, certhash);
|
||||
user.add_certificate(self.certificate.clone())?;
|
||||
user.active_certificate = Some(self.certificate);
|
||||
Ok(Some(user))
|
||||
|
|
Loading…
Reference in a new issue