Skip to content

Commit

Permalink
Merge branch 'inactive-include-username'
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Jan 6, 2022
2 parents 3e1e75f + a41b5a5 commit e64a0a1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,7 @@
- Front end improvements:
- Highlight pin on sidebar focus as well as hover.
- Map page pagination links now styled as links rather than buttons. #3727
- Include username in inactive email.
- Bugfixes:
- Add ID attributes to change password form inputs.
- Fix link deactivation for privacy policy link on privacy policy page. #3704
Expand Down
3 changes: 2 additions & 1 deletion t/script/inactive.t
Expand Up @@ -100,7 +100,8 @@ subtest 'Anonymization of inactive users' => sub {
stdout_is { $in->users } "Anonymizing user #" . $user->id . "\nEmailing user #" . $user_inactive->id . "\n", 'users dealt with first time';

my $email = $mech->get_email;
like $email->as_string, qr/inactive\@example.com/, 'Inactive email sent';
my $user_email = $user_inactive->email;
like $email->as_string, qr/Your $user_email/, 'Inactive email sent';
$mech->clear_emails_ok;

$user->discard_changes;
Expand Down
2 changes: 1 addition & 1 deletion templates/email/default/inactive-account.html
Expand Up @@ -12,7 +12,7 @@
<th style="[% td_style %][% only_column_style %]">
<h1 style="[% h1_style %]">Your inactive account</h1>
<p style="[% p_style %]">
Your account on [% site_name %] has been inactive for [% email_from %]
Your [% user.username %] account on [% site_name %] has been inactive for [% email_from %]
[% nget('month', 'months', email_from) %], and we automatically remove
accounts that have been inactive after [% anonymize_from %]
[% nget('month', 'months', anonymize_from) %]. If you wish to keep your
Expand Down
2 changes: 1 addition & 1 deletion templates/email/default/inactive-account.txt
Expand Up @@ -2,7 +2,7 @@ Subject: Your inactive account on [% site_name %]

Hello [% user.name %],

Your account on [% site_name %] has been inactive for [% email_from %]
Your [% user.username %] account on [% site_name %] has been inactive for [% email_from %]
[% nget('month', 'months', email_from) %], and we automatically remove
accounts that have been inactive after [% anonymize_from %]
[% nget('month', 'months', anonymize_from) %]. If you wish to keep your
Expand Down

0 comments on commit e64a0a1

Please sign in to comment.