Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not strip password leading or trailing whitespaces
The default behavior of the CharField class in Django forms is to strip leading and trailing whitespaces from the input text - see https://docs.djangoproject.com/en/4.2/ref/forms/fields/#django.forms.CharField.strip. For authentication, this means that a user with a password containing leading or trailing whitespace is currently unable to log in via OMERO.web. This commit fixes the login form as well as the change password form to preserve leading/trailing passwords.
- Loading branch information