feat: refactor GetTokenByTokenValue()

This commit is contained in:
Yang Luo
2024-01-29 10:03:33 +08:00
parent 79f81f1356
commit 540f22f8bd
2 changed files with 21 additions and 15 deletions

View File

@ -317,7 +317,7 @@ func (c *ApiController) IntrospectToken() {
return
}
token, err := object.GetTokenByTokenAndApplication(tokenValue, application.Name)
token, err := object.GetTokenByTokenValue(tokenValue)
if err != nil {
c.ResponseTokenError(err.Error())
return