diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-12-08 15:23:50 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-12-08 15:23:50 +0100 |
commit | cf18eb8afb76a25150c885c6cf525aedcc25facc (patch) | |
tree | 4a36c487cbc83ce8cc989e62d43531554de1a65b /src/login/static_provider.rs | |
parent | 3ddbce4529225fe004acde3ab2e95261673bafc3 (diff) | |
download | aerogramme-cf18eb8afb76a25150c885c6cf525aedcc25facc.tar.gz aerogramme-cf18eb8afb76a25150c885c6cf525aedcc25facc.zip |
now compile again
Diffstat (limited to 'src/login/static_provider.rs')
-rw-r--r-- | src/login/static_provider.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/static_provider.rs b/src/login/static_provider.rs index 3f6a840..d0a4624 100644 --- a/src/login/static_provider.rs +++ b/src/login/static_provider.rs @@ -30,7 +30,7 @@ impl StaticLoginProvider { } pub fn update_user_list(&mut self) -> Result<()> { - let ulist: UserList = read_config(self.user_list)?; + let ulist: UserList = read_config(self.user_list.clone())?; let users = ulist .into_iter() @@ -76,7 +76,7 @@ impl LoginProvider for StaticLoginProvider { }), }; - let keys = match user.crypto_root { /*(&user.master_key, &user.secret_key) {*/ + let keys = match &user.crypto_root { /*(&user.master_key, &user.secret_key) {*/ CryptographyRoot::InPlace { master_key: m, secret_key: s } => { let master_key = Key::from_slice(&base64::decode(m)?).ok_or(anyhow!("Invalid master key"))?; |