aboutsummaryrefslogtreecommitdiff
path: root/src/login/static_provider.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-12-08 15:23:50 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-12-08 15:23:50 +0100
commitcf18eb8afb76a25150c885c6cf525aedcc25facc (patch)
tree4a36c487cbc83ce8cc989e62d43531554de1a65b /src/login/static_provider.rs
parent3ddbce4529225fe004acde3ab2e95261673bafc3 (diff)
downloadaerogramme-cf18eb8afb76a25150c885c6cf525aedcc25facc.tar.gz
aerogramme-cf18eb8afb76a25150c885c6cf525aedcc25facc.zip
now compile again
Diffstat (limited to 'src/login/static_provider.rs')
-rw-r--r--src/login/static_provider.rs4
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"))?;