Skip to content

Commit

Permalink
Send "OK" message on successful auth
Browse files Browse the repository at this point in the history
  • Loading branch information
mplorentz committed Jul 23, 2024
1 parent cce10d8 commit daa70b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,8 @@ async fn nostr_server(
None => "<unspecified>".to_string(),
};
info!("client is authenticated: (cid: {}, pubkey: {:?})", cid, pubkey);
let notice = Notice::saved(event.id);
ws_stream.send(make_notice_message(&notice)).await.ok();
},
Err(e) => {
info!("authentication error: {} (cid: {})", e, cid);
Expand Down

0 comments on commit daa70b4

Please sign in to comment.