revert unneeded change

This commit is contained in:
Amarpreet Minhas 2024-09-23 22:21:31 -04:00
parent 84ba15babe
commit ededb3be5c

View file

@ -28,7 +28,6 @@ func RejectUnregisteredNpubs(ctx context.Context, event *nostr.Event) (reject bo
authenticatedUser := khatru.GetAuthed(ctx)
if authenticatedUser == "" {
l.Debug().Msgf("kind: %v, pubkey not authed: %s", event.Kind, event.PubKey)
khatru.RequestAuth(ctx)
return true, fmt.Sprintf("auth-required: interacting with this relay requires authentication")
}