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())? {
|
if self.manager.users.contains_key(username.as_str())? {
|
||||||
Err(super::UserManagerError::UsernameNotUnique)
|
Err(super::UserManagerError::UsernameNotUnique)
|
||||||
} else {
|
} else {
|
||||||
|
info!("User {} registered!", username);
|
||||||
|
|
||||||
let mut newser = RegisteredUser::new(
|
let mut newser = RegisteredUser::new(
|
||||||
username,
|
username,
|
||||||
Some(self.certificate.clone()),
|
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.add_certificate(self.certificate.clone())?;
|
||||||
user.active_certificate = Some(self.certificate);
|
user.active_certificate = Some(self.certificate);
|
||||||
Ok(Some(user))
|
Ok(Some(user))
|
||||||
|
|
Loading…
Reference in a new issue