-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
175 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ hbmqtt2==0.9.7 | |
pytest-cov==4.0.0 | ||
pytest==7.2.0 | ||
responses==0.22.0 | ||
alembic==1.9.4 | ||
alembic==1.9.4 | ||
freezegun==1.2.2 |
18 changes: 10 additions & 8 deletions
18
server/templates/admin_suspended_user_account_deleted.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
{% extends "mail_layout.html" %} | ||
{% block title %}SURF platform account deletion notification {% endblock %} | ||
{% block title %}SRAM account deletion notification for {{ environment }}{% endblock %} | ||
{% block content %} | ||
|
||
<p>Hi,</p> | ||
<p>User {{ user.name }} ({{ user.uid }}) is deleted on environment {{ environment }} | ||
at {{ date }}, because of inactivity by the suspended users cron job</p> | ||
<p>The following users have been removed from SRAM in environment {{ environment }} | ||
because of inactivity by the suspended users cron job.</p> | ||
|
||
<p>Please remove this user from Perun.</p> | ||
<p>Please delete them from the MMS.</p> | ||
|
||
{% for key, value in attributes.items() %} | ||
<p>{{ key }}: {{ value }}</p> | ||
<ul> | ||
{% for uid in uids %} | ||
<li>{{ uid }}</li> | ||
{% endfor %} | ||
</ul> | ||
|
||
<p>This email is automatically sent and can be suppressed by changing the <i>account_deletion_notifications_enabled</i> section | ||
of the configuration for environment {{ environment }}</p> | ||
|
||
<p>This email is automatically sent for environment {{ environment }}.</p> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
{% extends "mail_layout.txt" %} | ||
{% block title %}SURF inactive notification{% endblock %} | ||
{% block title %}SRAM account deletion notification for {{ environment }}{% endblock %} | ||
{% block content %} | ||
|
||
Hi, | ||
User {{ user.name }} ({{ user.uid }}) is deleted on environment {{ environment }} | ||
at {{ date }}, because of inactivity by the suspended users cron job. | ||
The following users have been removed from SRAM in environment {{ environment }} | ||
because of inactivity by the suspended users cron job. | ||
|
||
Please delete them from the MMS. | ||
|
||
{% for uid in uids %} | ||
{{ uid }} | ||
{% endfor %} | ||
|
||
This email is automatically sent for environment {{ environment }}. | ||
|
||
{% endblock %} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.