added comments

[ci skip]
This commit is contained in:
Alberto Ricart
2020-11-24 10:58:22 -06:00
parent 3c0cc64877
commit cf8a44da4e
2 changed files with 2 additions and 2 deletions

View File

@@ -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
}

View File

@@ -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