feat: added remember me checkbox in login form
This commit is contained in:
+11
-1
@@ -15,7 +15,7 @@ class LoginForm(AuthenticationForm):
|
||||
)
|
||||
)
|
||||
password = forms.CharField(
|
||||
label=_("Password"),
|
||||
label=_("Contraseña"),
|
||||
strip=False,
|
||||
widget=forms.PasswordInput(
|
||||
attrs={
|
||||
@@ -26,3 +26,13 @@ class LoginForm(AuthenticationForm):
|
||||
}
|
||||
),
|
||||
)
|
||||
remember_me = forms.BooleanField(
|
||||
label=_("Mantener sesión iniciada"),
|
||||
required=False,
|
||||
widget=forms.CheckboxInput(
|
||||
attrs={
|
||||
"class": "w-4 h-4 border border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-primary-300 "
|
||||
"dark:bg-gray-700 dark:border-gray-600 dark:focus:ring-primary-600 dark:ring-offset-gray-800"
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user