don't log hashed passwords
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-04 08:40:42 +10:00
parent 2d7a55e427
commit 93385646b6
2 changed files with 6 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ func JwtAuthAdminMiddleware() gin.HandlerFunc {
c.Abort()
return
}
log.Printf("JwtAuthAdminMiddleware retrieved UserRole object '%v'\n", ur)
log.Printf("JwtAuthAdminMiddleware retrieved UserRole object for UserId '%d'\n", ur.UserId)
// Verify that the user has a role with the admin flag set
if !ur.Admin {