Rename to accessSecret

This commit is contained in:
Yang Luo
2023-06-16 20:42:15 +08:00
parent 98fb9f25b0
commit b01ba792bb
15 changed files with 83 additions and 16 deletions

View File

@ -85,12 +85,13 @@ func getUsernameByClientIdSecret(ctx *context.Context) string {
}
func getUsernameByKeys(ctx *context.Context) string {
accessKey, secretKey := getKeys(ctx)
accessKey, accessSecret := getKeys(ctx)
user, err := object.GetUserByAccessKey(accessKey)
if err != nil {
panic(err)
}
if user != nil && secretKey == user.SecretKey {
if user != nil && accessSecret == user.AccessSecret {
return user.GetId()
}
return ""