invitations: Revoke remaining invitations after user registers.

If a user receives more than one invite to join a
realm, after that user registers, all the remaining
invitations should be revoked, preventing them to be
listed in active invitations on admin panel.
To do this, we added a new prereg_user status,
STATUS_REVOKED.

We also added a confirmation_link_expired_error page
in case the user tries click on a revoked invitaion.
This page has a link to login page.

Fixes: #12629

Co-authored-by: Arunika <arunikayadav42@gmail.com>
This commit is contained in:
clarammdantas
2020-04-30 20:52:45 -03:00
committed by Tim Abbott
parent 923c5e3063
commit edcf4f0ea2
5 changed files with 73 additions and 12 deletions

View File

@@ -3,3 +3,4 @@
__revision__ = '$Id: settings.py 12 2008-11-23 19:38:52Z jarek.zgoda $'
STATUS_ACTIVE = 1
STATUS_REVOKED = 2