request auth when rejecting because of no auth
This commit is contained in:
parent
250680a989
commit
84ba15babe
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ 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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue