@@ -57,6 +57,7 @@ class PasswordInputWithToggle(PasswordInput):
5757 """
5858 Custom PasswordInput widget with eye icon toggle functionality
5959 """
60+
6061 template_name = 'forms/password_with_toggle.html'
6162
6263 def __init__ (self , attrs = None , render_value = False ):
@@ -289,11 +290,11 @@ class RegistrationForm(UserCreationForm, UserEmailForm):
289290
290291 def __init__ (self , * args , ** kwargs ):
291292 super (RegistrationForm , self ).__init__ (* args , ** kwargs )
292-
293+
293294 # Apply custom password widgets
294295 self .fields ['password1' ].widget = PasswordInputWithToggle ()
295296 self .fields ['password2' ].widget = PasswordInputWithToggle ()
296-
297+
297298 self .helper = FormHelper ()
298299 self .helper .form_class = 'wger-form'
299300 self .helper .layout = Layout (
@@ -316,11 +317,11 @@ class RegistrationFormNoCaptcha(UserCreationForm, UserEmailForm):
316317
317318 def __init__ (self , * args , ** kwargs ):
318319 super (RegistrationFormNoCaptcha , self ).__init__ (* args , ** kwargs )
319-
320+
320321 # Apply custom password widgets
321322 self .fields ['password1' ].widget = PasswordInputWithToggle ()
322323 self .fields ['password2' ].widget = PasswordInputWithToggle ()
323-
324+
324325 self .helper = FormHelper ()
325326 self .helper .form_class = 'wger-form'
326327 self .helper .layout = Layout (
@@ -370,4 +371,4 @@ class FeedbackAnonymousForm(FeedbackRegisteredForm):
370371 widget = ReCaptchaV3 ,
371372 label = 'reCaptcha' ,
372373 help_text = _ ('The form is secured with reCAPTCHA' ),
373- )
374+ )
0 commit comments