Skip to content

Commit

Permalink
Merge pull request #3 from planetary-social/dont-check-list-on-auth
Browse files Browse the repository at this point in the history
Dont check list on auth
  • Loading branch information
mplorentz authored Jul 25, 2024
2 parents bd605bf + d90b39d commit 1d356bf
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,17 +183,6 @@ impl ClientConn {
}
match event.validate() {
Ok(_) => {
let whitelist = self
.settings
.authorization
.pubkey_whitelist
.as_ref()
.unwrap();
if !whitelist.contains(&event.pubkey) {
debug!("User is not in whitelist");
return Err(Error::AuthFailure);
}

if event.kind != 22242 {
debug!("Auth kind is not 22242");
return Err(Error::AuthFailure);
Expand Down

0 comments on commit 1d356bf

Please sign in to comment.