summaryrefslogtreecommitdiffstats
path: root/django/sp_sso/invite/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/sp_sso/invite/forms.py')
-rw-r--r--django/sp_sso/invite/forms.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/django/sp_sso/invite/forms.py b/django/sp_sso/invite/forms.py
index 1b5f3bb..0736a3c 100644
--- a/django/sp_sso/invite/forms.py
+++ b/django/sp_sso/invite/forms.py
@@ -5,7 +5,23 @@ from .utils import get_invitaton_attributes_mapping, get_additional_prefilled_fi
class InvitationForm(forms.Form):
+ """ Used when sending invites to the Campus
+
+ Invites are sent to the `email` field. Multiple adresses are handled if
+ they are separated by a blank space ` ` character.
+
+ This form is restricted to users having previously registered to the
+ Campus ; therefore they must log in to their RENATER-federated account
+ before accessing the form.
+ """
def __init__(self, *args, **kwargs):
+ """
+ Attributes fetched from the identity provider are used to pre-fill
+ the fields.
+ An extra hidden field is used to store the user's
+ eduPersonPrincipalName, used as key identity attribute in the
+ corresponding LDAP entry.
+ """
super(InvitationForm, self).__init__(*args, **kwargs)
# Add a help text for sending multiple invitations
self.fields['email'].help_text = _(