Closed William-Wildridge closed 3 months ago
To add to this, it would be nice if this by default override the registration/password_reset_form
, registration/password_reset_confirm
, registration/password_reset_confirm
, and registration/password_change_form
templates used by django.contrib.auth.views
's PasswordResetView
, PasswordResetDoneView
, PasswordResetConfirmView
, and PasswordResetCompleteView
views
These are two different problems:
The change password form needs to be overriden by the form provided in Unfold where all CSS classes are overridden. In README you can find docs: https://github.com/unfoldadmin/django-unfold?tab=readme-ov-file#user-admin-form
The second problem is password reset form. This form is class based view which lives outside of admin thus does not have an access to the Unfold's admin site which holds for example admin colors so I can not style it properly. Here the recommendation is to style these pages in your own project so they will match your FE visual. In #541 I fixed the button on the login form.
Regarding the password reset form and proper styles, new view mixin would be required which will expose some UNFOLD settings like color combination and overriden form with proper classes. But this is out the scope right now and not in roadmap.
I note that:
accounts/password_change has the expected unfold style:
But accounts/password_reset doesn't, looking into the html it seems that no tailwind styling is added like the reset view:
Just the basic reset password form is included, but it renders with limited usability:
On a white themed background (the default non-l;ogged in experience), this has almost no usability.