aboutsummaryrefslogtreecommitdiff
path: root/src/login/static_provider.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-12-13 18:04:04 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-12-13 18:04:04 +0100
commit29561dde41b402362f8baa3d9cd87a07f743b9fd (patch)
tree3d2698eb2c3547d923bf6468e65614eb7fc73dcf /src/login/static_provider.rs
parent064a1077c8c66fe8d3ee71f831c930e1ddfbc34a (diff)
downloadaerogramme-29561dde41b402362f8baa3d9cd87a07f743b9fd.tar.gz
aerogramme-29561dde41b402362f8baa3d9cd87a07f743b9fd.zip
CLI tools
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 178d97e..85d55ef 100644
--- a/src/login/static_provider.rs
+++ b/src/login/static_provider.rs
@@ -81,7 +81,7 @@ impl LoginProvider for StaticLoginProvider {
}),
};
- let cr = CryptoRoot(user.crypto_root);
+ let cr = CryptoRoot(user.crypto_root.clone());
let keys = cr.crypto_keys(password)?;
tracing::debug!(user=%username, "logged");
@@ -106,7 +106,7 @@ impl LoginProvider for StaticLoginProvider {
}),
};
- let cr = CryptoRoot(user.crypto_root);
+ let cr = CryptoRoot(user.crypto_root.clone());
let public_key = cr.public_key()?;
Ok(PublicCredentials {