more audit logs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-22 19:05:26 +11:00
parent 9f0dafd4fd
commit b5c9b5ce19
3 changed files with 65 additions and 1 deletions

View File

@@ -183,7 +183,7 @@ func AddUser(c *gin.Context) {
a := models.Audit{
UserId: RequestingUserId,
IpAddress: c.ClientIP(),
EventText: fmt.Sprintf("Created User Id %d", u.UserId),
EventText: fmt.Sprintf("Created User '%s' with id %d", u.UserName, u.UserId),
}
a.AuditLogAdd()