Handle absence of keyring for password creation
Dependencies
- [2]
V6IKXSCFForgot to record a `use` - [3]
4OJWMSOWFully replace crate::Identity - [4]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [5]
L2VH4BYKDownloading changelists from channels without an id (Nest discussions) - [6]
4KJ45IJLImplement new identity management - [7]
DWSAYGVEUpdate codebase to use new identity management - [8]
L4JXJHWXpijul/*: reorganize imports and remove extern crate - [9]
TKEVOH7HFixing a bug when downloading changes, and making change download more efficient (more async) - [10]
MU5GSJAWPartial push and pull (WARNING: breaks the existing protocol)
Change contents
- replacement in pijul/src/remote/ssh.rs at line 14
use log::{debug, error, info, trace};use log::{debug, error, info, trace, warn}; - replacement in pijul/src/remote/ssh.rs at line 251
match keyring::Entry::new("pijul", &username).set_password(&password) {Err(e) => writeln!(std::io::stderr(),"Warning: could not write new password to keychain: {e}").unwrap(),_ => (),if let Err(e) = keyring::Entry::new("pijul", &username).set_password(&password) {warn!("Unable to set password: {e:?}"); - edit in pijul/src/identity/mod.rs at line 43
use log::warn; - replacement in pijul/src/identity/mod.rs at line 148
keyring::Entry::new("pijul", name).set_password(&password_attempt)?;if let Err(e) = keyring::Entry::new("pijul", name).set_password(&password_attempt) {warn!("Unable to set password: {e:?}");} - replacement in pijul/src/identity/mod.rs at line 269
keyring::Entry::new("pijul", &self.name).set_password(&user_password)?;if let Err(e) = keyring::Entry::new("pijul", &self.name).set_password(&user_password) {warn!("Unable to set password: {e:?}");} - replacement in pijul/src/identity/create.rs at line 366
Entry::new("pijul", &new_identity.name).set_password(&password)?;if let Err(e) = Entry::new("pijul", &new_identity.name).set_password(&password) {warn!("Unable to set password: {e:?}");}