summaryrefslogtreecommitdiffstats
path: root/django/sp_sso/invite/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/sp_sso/invite/views.py')
-rw-r--r--django/sp_sso/invite/views.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/django/sp_sso/invite/views.py b/django/sp_sso/invite/views.py
index e5b21fd..ce85b63 100644
--- a/django/sp_sso/invite/views.py
+++ b/django/sp_sso/invite/views.py
@@ -15,10 +15,20 @@ MSG_INVITATION_SENT = _("Your invitation has been sent.")
def invitation_sent(request):
+ """
+ Notifies the user about her invitation(s) by displaying a validation
+ message.
+ """
return render_message(request, MSG_INVITATION_SENT)
class InvitationFormView(FormView):
+ """
+ Main FormView for the invitation process.
+
+ Gathers SSO attributes from the identity provider, used to pre-fill and
+ set as readonly the `InvitationForm` fields.
+ """
form_class = InvitationForm
template_name = 'invite/invitation_form.html'
success_url = '/invite/sent'