Implement email verification view
This commit is contained in:
parent
2c95e31e56
commit
f77ec17cbf
1 changed files with 6 additions and 1 deletions
|
@ -12,6 +12,7 @@ from .mixins import SuperUserRequiredMixin
|
|||
|
||||
from clients.models import ClientProfile
|
||||
from partners.models import PartnerProfile
|
||||
from mail.views import MailView
|
||||
|
||||
class LoginView(Login):
|
||||
template_name = "localauth/login.html"
|
||||
|
@ -48,4 +49,8 @@ class VerificationView(SuperUserRequiredMixin, FormView):
|
|||
|
||||
messages.success(self.request, "Benutzer %s bestätigt!" % pobj.full_name)
|
||||
|
||||
return HttpResponseRedirect(resolve_url("localauth:verify"))
|
||||
return HttpResponseRedirect(resolve_url("localauth:verify"))
|
||||
|
||||
class EmailVerificationHTMLMailView(MailView):
|
||||
template_name = "localauth/mail/verify.html"
|
||||
|
Loading…
Reference in a new issue