don't log hashed passwords
continuous-integration/drone/push Build is passing

This commit is contained in:
nathan committed 2023-04-04 08:40:42 +10:00
1 parent 2d7a55e427
commit 93385646b6
2 files changed
+6 -3

No files matched your search

+1 -1
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 {