upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-11-03 19:47:56 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-11-03 19:47:56 +0000
commitf40f2862379ad3c20183401c35bc9666ce5e29d9 (patch)
tree749e13a2a4db32066d6e8d14516a2d89b45ecd2c
parenta287f53132c91eaa3ba8d5e9c2bec80587316aad (diff)
fix: show nsec when created and can't save globally
otherwise we prompt the user to manually add it to global git config but they don't know the value. we did it like this to not expose the nsec but i in this case we should.
-rw-r--r--src/lib/login/fresh.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/login/fresh.rs b/src/lib/login/fresh.rs
index 44ee66a..e01d4c3 100644
--- a/src/lib/login/fresh.rs
+++ b/src/lib/login/fresh.rs
@@ -516,11 +516,7 @@ async fn save_to_git_config(
516 password: _, 516 password: _,
517 npub: _, 517 npub: _,
518 } => { 518 } => {
519 if nsec.contains("ncryptsec") { 519 eprintln!("consider manually setting git config nostr.nsec to: {nsec}");
520 eprintln!("consider manually setting git config nostr.nsec to: {nsec}");
521 } else {
522 eprintln!("consider manually setting git config nostr.nsec");
523 }
524 } 520 }
525 SignerInfo::Bunker { 521 SignerInfo::Bunker {
526 bunker_uri, 522 bunker_uri,