fix hosted mode

This commit is contained in:
bunnie 2022-08-12 23:26:43 +08:00
parent ef62dbf307
commit f70dc246b8

View file

@ -147,8 +147,9 @@ mod implementation {
pub fn update_policy(&mut self, policy: Option<PasswordRetentionPolicy>) {
log::info!("policy updated: {:?}", policy);
}
pub fn hash_and_save_password(&mut self, pw: &str, _verify: bool) {
pub fn hash_and_save_password(&mut self, pw: &str, _verify: bool) -> bool {
log::info!("got password plaintext: {}", pw);
true
}
pub fn set_ux_password_type(&mut self, cur_type: Option<PasswordType>) {
self.password_type = cur_type;
@ -197,6 +198,7 @@ mod implementation {
}
pub fn purge_password(&mut self, _ptype: PasswordType) {}
pub fn purge_user_password(&mut self, _ptype: AesRootkeyType) {}
pub fn purge_sensitive_data(&mut self) {}
pub fn get_ux_password_type(&self) -> Option<PasswordType> {self.password_type}
pub fn finish_key_init(&mut self) {}