diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-12-13 18:04:04 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-12-13 18:04:04 +0100 |
commit | 29561dde41b402362f8baa3d9cd87a07f743b9fd (patch) | |
tree | 3d2698eb2c3547d923bf6468e65614eb7fc73dcf /src/login/static_provider.rs | |
parent | 064a1077c8c66fe8d3ee71f831c930e1ddfbc34a (diff) | |
download | aerogramme-29561dde41b402362f8baa3d9cd87a07f743b9fd.tar.gz aerogramme-29561dde41b402362f8baa3d9cd87a07f743b9fd.zip |
CLI tools
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 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 { |