May I ask why some users’ password keep changing ya? They have their DoB as their password by default but they keep complaining can’t login with the default password. Is there any Tryton default logic that change password?
No Tryton does not change password automatically.
But I would suspect that they open the user preferences dialog and somehow change their password without noticing it (maybe some password manager).
But also if the password is as simple as a date of birth, some hacker may have found it.
I’ve seen something similar in Sao under Administration > Users. I edited an existing user’s groups without touching the password field. The browser filled the password field, and saving the record changed the user’s password as well. I’ve also seen browser autofill fill password fields in other Sao forms.
The password widget renders the input without an autocomplete attribute, and Sao reads its value when saving the record. If the browser fills it, that value can be saved along with the group changes.
Would autocomplete="new-password" be a reasonable first step for this field?
That seems to match the definition: autocomplete HTML attribute - HTML | MDN
Then I wonder if all the passord widget fields should have this or must be another configurable attribute.
I guess as we do not want them to be changed.
Except for the login process which should use current-password.
The web is really bloated when you have to set attribute to prevent some random behavior.