Fix update credential failure (#17963) (#17964)

Signed-off-by: kejiang <ke.jiang@zilliz.com>

Co-authored-by: kejiang <ke.jiang@zilliz.com>
This commit is contained in:
codeman 2022-06-30 19:26:19 +08:00 committed by GitHub
parent 8d072181a6
commit dccb5da5c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -518,13 +518,9 @@ func (m *MetaCache) GetCredentialInfo(ctx context.Context, username string) (*in
EncryptedPassword: resp.Password,
}
m.UpdateCredential(credInfo)
return credInfo, nil
}
return &internalpb.CredentialInfo{
Username: credInfo.Username,
Sha256Password: credInfo.Sha256Password,
}, nil
return credInfo, nil
}
func (m *MetaCache) ClearCredUsers() {