mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
added comments
[ci skip]
This commit is contained in:
@@ -2692,7 +2692,7 @@ func (a *Account) hasIssuer(issuer string) bool {
|
||||
|
||||
// hasIssuerNoLock is the unlocked version of hasIssuer
|
||||
func (a *Account) hasIssuerNoLock(issuer string) bool {
|
||||
// same issuer
|
||||
// same issuer -- keep this for safety on the calling code
|
||||
if a.Name == issuer {
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -525,7 +525,7 @@ func (s *Server) processClientOrLeafAuthentication(c *client, opts *Options) boo
|
||||
c.Debugf("Account JWT not signed by trusted operator")
|
||||
return false
|
||||
}
|
||||
// this only executes IF there's an issuer on the Juc - otherwise the account is already
|
||||
// this only executes IF there's an issuer on the Juc - otherwise the account is already vetted
|
||||
if juc.IssuerAccount != "" && !acc.hasIssuer(juc.Issuer) {
|
||||
c.Debugf("User JWT issuer is not known")
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user