From ed339b9167d7e5eed271e7e53b04750735ce59fa Mon Sep 17 00:00:00 2001 From: besque Date: Fri, 25 Oct 2024 12:48:35 +0530 Subject: [PATCH] Fixed teacher invitation password visibility and strength checker --- portal/forms/teach.py | 1 + portal/templates/portal/teach/invited.html | 22 +++++++++++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/portal/forms/teach.py b/portal/forms/teach.py index 15f49e063..cc22a80b9 100644 --- a/portal/forms/teach.py +++ b/portal/forms/teach.py @@ -18,6 +18,7 @@ class InvitedTeacherForm(forms.Form): + prefix = 'teacher_signup' teacher_password = forms.CharField( help_text="Enter a password", widget=forms.PasswordInput( diff --git a/portal/templates/portal/teach/invited.html b/portal/templates/portal/teach/invited.html index 42f9c1504..6825276cf 100644 --- a/portal/templates/portal/teach/invited.html +++ b/portal/templates/portal/teach/invited.html @@ -20,7 +20,7 @@

Complete registration

-
+ {% csrf_token %} @@ -29,7 +29,9 @@

Complete registration

- {{ invited_teacher_form.teacher_password }} + {{ invited_teacher_form.teacher_password }} +
{{ invited_teacher_form.teacher_password.help_text }} {{ invited_teacher_form.teacher_password.errors }} @@ -37,7 +39,9 @@

Complete registration

- {{ invited_teacher_form.teacher_confirm_password }} + {{ invited_teacher_form.teacher_confirm_password }} +
{{ invited_teacher_form.teacher_confirm_password.help_text }} {{ invited_teacher_form.teacher_confirm_password.errors }} @@ -73,10 +77,14 @@

Complete registration

- +{% include "portal/partials/service_unavailable_popup.html" %} + -{% endblock content %} + + +{% endblock content %} \ No newline at end of file