mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Logs: Replace status string literals with generic constants
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user