feat: company-scoped emails and audit log, company on admin password emails

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-11-30 20:03:19 +08:00
1 parent b7d9da8ec0
commit 00ce47bc49
13 files changed
+435 -25

No files matched your search

@@ -927,6 +927,7 @@ public class UserController {
recipientslist.add(new Recipient(null, emailAddress, RecipientType.R, RecipientStatusType.Y));
Email email = new Email();
email.setSubject("Reset Admin Password");
email.setCompanyId(user.getCompanyId());
email.setBody("<p>Hi "+username+",</p><p>Your temporary password: "+ randPassword+"</p>");
email.setDatetime(LocalDateTime.now());
email.setRecipients(recipientslist);