diff options
Diffstat (limited to 'src/key_handling/users.rs')
| -rw-r--r-- | src/key_handling/users.rs | 3 |
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 |