add register client view

This commit is contained in:
Paul Marillonnet 2019-05-10 11:23:32 +02:00
parent 8c17c47235
commit 16565b5b55
1 changed files with 8 additions and 0 deletions

View File

@ -57,6 +57,14 @@ class AuthorizationRuleCreateView(FormView):
authorization_rule_create_view = login_required(AuthorizationRuleCreateView.as_view())
class RegisterClientView(FormView):
form_class = forms.RegisterClientForm
template_name = "authentic2/register_form.html"
title = _('Register client')
register_client_view = login_required(register_client_view.as_view())
def redirect(request, next, template_name='redirect.html'):
'''Show a simple page which does a javascript redirect, closing any popup
enclosing us'''