Skip to content

Commit 3b4f4d8

Browse files
authored
Merge pull request #13 from ngandrass/feature/show-unused-accounts
Feature: Show unused accounts during dry-run
2 parents 254dfcc + 163e9f1 commit 3b4f4d8

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## Version X.Y.Z (YYYYMMDDXX)
4+
5+
- List accounts that were created but to which no user ever logged into with their "Time created" instead of "Last
6+
access" date on dry-run page
7+
- Add informational text about differentiation of inactive and never-used accounts on the dry run page
8+
9+
310
## Version 1.4.1 (2025110600)
411

512
- Improve plugin config validation routine

lang/de/tool_userautodelete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
$string['dry_run_explanation'] = 'Diese Seite zeigt die Aktionen, die während der nächsten Inaktivitätsprüfung ausgeführt werden würden. Keine der Aktionen wurde tatsächlich ausgeführt!';
123123
$string['current_configuration'] = 'Aktuelle Konfiguration';
124124
$string['current_configuration_table_desc'] = 'Diese Tabelle listet den Zeitpunkt der nächsten Inaktivitätsprüfung die im Hintergrund ausgeführt werden würde, sowie die konfigurierten Schwellenwerte für Warn-E-Mails und Nutzerlöschungen auf. Außerdem ist angegeben, welche Nutzerrollen von der automatischen Löschung ausgeschlossen sind.';
125-
$string['dry_run_affected_users_desc'] = 'Die hier aufgeführten Nutzer würden entweder eine Warn-E-Mail erhalten oder gelöscht werden. Wenn keine Nutzer aufgelistet sind, hat sich kein Nutzer länger als die konfigurierten Schwellenwerte nicht eingeloggt oder der Nutzer ist gemäß der Plugin-Konfiguration ausgeschlossen.';
125+
$string['dry_run_affected_users_desc'] = 'Die hier aufgeführten Nutzer würden entweder eine Warn-E-Mail erhalten oder gelöscht werden. Wenn keine Nutzer aufgelistet sind, hat sich kein Nutzer länger als die konfigurierten Schwellenwerte nicht eingeloggt oder der Nutzer ist gemäß der Plugin-Konfiguration ausgeschlossen. Konten die zwar erstellt wurden, bei denen sich jedoch noch nie ein Benutzer angemeldet hat, werden mit ihrem Erstellungsdatum <i>„Erstellungsdatum“</i> anstelle des letzten Anmeldedatums <i>„Letzter Zugriff“</i> gelistet.';
126126
$string['a_users_would_be_deleted'] = 'Die folgenden {$a} Nutzer würden gelöscht werden';
127127
$string['a_users_would_be_warned'] = 'Die folgenden {$a} Nutzer würden eine Warn-E-Mail erhalten';
128128

lang/en/tool_userautodelete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
$string['dry_run_explanation'] = 'This page shows the actions that would be performed during the next check interval. None of the actions have been actually performed yet!';
123123
$string['current_configuration'] = 'Current configuration';
124124
$string['current_configuration_table_desc'] = 'This table lists the next time a check for inactive users would be executed in the background as well as the configured thresholds for warning e-mails and user deletions. Additionally, user roles that are excluded from the deletion process are listed here.';
125-
$string['dry_run_affected_users_desc'] = 'Users listed here will either receive a warning email or will be deleted right away. If no users are listed, no user has been inactive for longer than the configured thresholds, or the user is ignored according to the plugin configuration.';
125+
$string['dry_run_affected_users_desc'] = 'Users listed here will either receive a warning email or will be deleted right away. If no users are listed, no user has been inactive for longer than the configured thresholds, or the user is ignored according to the plugin configuration. Accounts that have been created but to which no user ever logged in are listed with their creation date <i>"Time created"</i> instead of the last login date <i>"Last access"</i>.';
126126
$string['a_users_would_be_deleted'] = 'The following {$a} users would be deleted';
127127
$string['a_users_would_be_warned'] = 'The following {$a} users would receive a warning email';
128128

templates/dryrun.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
({{#str}} lastaccess {{/str}}: {{#userdate}} {{lastaccess}}, {{#str}} strftimedatetime, core_langconfig {{/str}} {{/userdate}})
210210
{{/lastaccess}}
211211
{{^lastaccess}}
212-
({{#str}} lastaccess {{/str}}: {{#userdate}} {{timecreated}}, {{#str}} strftimedatetime, core_langconfig {{/str}} {{/userdate}})
212+
({{#str}} timecreated {{/str}}: {{#userdate}} {{timecreated}}, {{#str}} strftimedatetime, core_langconfig {{/str}} {{/userdate}})
213213
{{/lastaccess}}
214214
</li>
215215
{{/userstodelete.users}}
@@ -246,7 +246,7 @@
246246
({{#str}} lastaccess {{/str}}: {{#userdate}} {{lastaccess}}, {{#str}} strftimedatetime, core_langconfig {{/str}} {{/userdate}})
247247
{{/lastaccess}}
248248
{{^lastaccess}}
249-
({{#str}} lastaccess {{/str}}: {{#userdate}} {{timecreated}}, {{#str}} strftimedatetime, core_langconfig {{/str}} {{/userdate}})
249+
({{#str}} timecreated {{/str}}: {{#userdate}} {{timecreated}}, {{#str}} strftimedatetime, core_langconfig {{/str}} {{/userdate}})
250250
{{/lastaccess}}
251251
</li>
252252
{{/userstowarn.users}}

0 commit comments

Comments
 (0)