OCA / server-auth

https://odoo-community.org/psc-teams/tools-30
GNU Affero General Public License v3.0
146 stars 399 forks source link

[15.0][FIX] password_security: fix Policy applied to reset password dialog #644

Closed ap-wtioit closed 2 months ago

ap-wtioit commented 3 months ago

Add password_security settings as attributes to password input field for signup_policy.js to be able to pick them up. Also enable signup_policy.js to be loaded on /web/reset_password.

Previously the settings from password_security were not taken into consideration for the password reset form and the error message when hovering over the password strength meter always stated Required: at least 4 characters even when the settings where set to 12 characters or something different: Screencast from 2024-05-06 16:07:25.webm Screenshot from 2024-05-06 17-29-43

Issue tested on runboat with: http://oca-server-auth-15-0-884f003b6318.runboat.odoo-community.org/web/reset_password?db=ba124a0ef-fd32-452f-b362-a2b0ab3b2a88&token=VZEHfqvUItBVyfAGimQu

With this change the settings from password_security are correctly applied to /web/reset_password password strenght meter.

New message is correct: Screenshot from 2024-05-06 17-25-33

Info @wt-io-it

pedrobaeza commented 2 months ago

/ocabot merge minor

OCA-git-bot commented 2 months ago

What a great day to merge this nice PR. Let's do it! Prepared branch 15.0-ocabot-merge-pr-644-by-pedrobaeza-bump-minor, awaiting test results.

OCA-git-bot commented 2 months ago

Congratulations, your PR was merged at 7299e4d68de3054c401838e6f9ce31722ca440bf. Thanks a lot for contributing to OCA. ❤️