Add a couple logging messages

This commit is contained in:
Emii Tatsuo 2020-11-28 14:23:39 -05:00
parent 67fe997eee
commit eca5c2fd44
Signed by: Emi
GPG key ID: 68FAB2E2E6DFC98B

View file

@ -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))