upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/key_handling
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2023-12-06 08:14:53 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2023-12-06 08:14:53 +0000
commitf811835ca768d6cbcef24f2873c43b51e63578ce (patch)
tree4da458f43d90d2b385102c008f0f6f9587d144b6 /src/key_handling
parent7392a20a3e38b4030b27761a3cffee64484695e7 (diff)
build(deps) update nix
- update nix flake - bump hard coded reference to rustfmt nightly version - fix warning that latest version of rustfmt produced
Diffstat (limited to 'src/key_handling')
-rw-r--r--src/key_handling/users.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/key_handling/users.rs b/src/key_handling/users.rs
index 75a0a00..42104f7 100644
--- a/src/key_handling/users.rs
+++ b/src/key_handling/users.rs
@@ -103,8 +103,7 @@ impl UserManagement for UserManager {
103 encrypted_secret_key: Option<String>, 103 encrypted_secret_key: Option<String>,
104 overwrite: bool, 104 overwrite: bool,
105 ) -> Result<()> { 105 ) -> Result<()> {
106 let user_ref = 106 let user_ref = config::UserRef::new(public_key, encrypted_secret_key.unwrap_or_default());
107 config::UserRef::new(public_key, encrypted_secret_key.unwrap_or(String::new()));
108 107
109 let mut cfg = self.config_manager.load().context("failed to load application config to find and remove any old versions of the user's encrypted key")?; 108 let mut cfg = self.config_manager.load().context("failed to load application config to find and remove any old versions of the user's encrypted key")?;
110 // don't overwrite unless specified 109 // don't overwrite unless specified