chore: update keys.rs and relay.rs (#193)

This commit is contained in:
XIAO YU
2024-05-26 07:28:16 +07:00
committed by GitHub
parent bba324ea53
commit b90ad1421f
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -88,12 +88,12 @@ pub async fn save_account(
#[specta::specta]
pub async fn load_account(npub: &str, state: State<'_, Nostr>) -> Result<bool, String> {
let client = &state.client;
let keyring = Entry::new(&npub, "nostr_secret").unwrap();
let keyring = Entry::new(npub, "nostr_secret").unwrap();
match keyring.get_password() {
Ok(password) => {
if password.starts_with("bunker://") {
let local_keyring = Entry::new(&npub, "bunker_local_account").unwrap();
let local_keyring = Entry::new(npub, "bunker_local_account").unwrap();
match local_keyring.get_password() {
Ok(local_password) => {