Logs: Replace status string literals with generic constants

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-10-21 15:08:10 +02:00
parent cd7fa6adca
commit 69c816d616
8 changed files with 27 additions and 22 deletions

View File

@@ -110,7 +110,7 @@ func OAuthToken(router *gin.RouterGroup) {
AbortInvalidCredentials(c)
return
} else if method := client.Method(); !method.IsDefault() && method != authn.MethodOAuth2 {
event.AuditWarn([]string{clientIp, "oauth2", actor, action, "method %s not supported"}, clean.LogQuote(method.String()))
event.AuditWarn([]string{clientIp, "oauth2", actor, action, "method %s", status.Unsupported}, clean.LogQuote(method.String()))
AbortInvalidCredentials(c)
return
} else if client.InvalidSecret(frm.ClientSecret) {