Enhance audit logging: add new audit types for password reset and prospect image actions, and update related services to log these events
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -37,6 +37,16 @@ namespace FoodsharingSiegen.Server.Data
|
||||
return $"hat dem Neuling {audit.Data1} folgendes hinzugefügt: {audit.Data2}";
|
||||
case AuditType.RemoveInteraction:
|
||||
return $"hat eine Interaktion bei {audit.Data1} gelöscht.";
|
||||
case AuditType.DeleteProspectImages:
|
||||
return $"hat die Bilder von {audit.Data1} gelöscht.";
|
||||
case AuditType.ViewProspectImages:
|
||||
return $"hat die Bilder von {audit.Data1} angesehen.";
|
||||
case AuditType.UploadProspectImage:
|
||||
return $"hat ein Bild für {audit.Data1} hochgeladen.";
|
||||
case AuditType.RequestPasswordReset:
|
||||
return $"hat ein Passwort-Reset für {audit.Data1} angefordert.";
|
||||
case AuditType.ChangeOwnPassword:
|
||||
return $"hat das eigene Passwort geändert.";
|
||||
case AuditType.None:
|
||||
default:
|
||||
return $"{audit.Data1}, {audit.Data2}";
|
||||
|
||||
Reference in New Issue
Block a user