Skip to content

Notif / delete account after delay#31

Draft
nworr wants to merge 2 commits intojelix:accountsfrom
nworr:delete-notif-after-delay
Draft

Notif / delete account after delay#31
nworr wants to merge 2 commits intojelix:accountsfrom
nworr:delete-notif-after-delay

Conversation

@nworr
Copy link
Contributor

@nworr nworr commented Sep 2, 2025

refs #29

use 2 param : inactiveNotificationDelay and inactiveDeletionDelay
use account ensabled field to mark as delete, but not sure it's the best way

@nworr nworr changed the base branch from master to accounts September 2, 2025 13:31

$daoIdp = \jDao::get(self::$daoIdp, self::$daoProfile);

$inactiveUsersToNotif = ($daoIdp->findInactiveNotNotified($inactiveNotificationDelay->format('Y-m-d')));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an issue here. If a user as several idp, and if he used only one of them, it will be notified for other unused idp.

I think it should be better to have the inactivity_notification_sended field on the account table instead of account_idp. So we wouldn't have this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants