Skip to content

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

Merged
OCA-git-bot merged 1 commit into
OCA:15.0from
ap-wtioit:15.0-fix_reset_password
May 9, 2024
Merged

[15.0][FIX] password_security: fix Policy applied to reset password dialog#644
OCA-git-bot merged 1 commit into
OCA:15.0from
ap-wtioit:15.0-fix_reset_password

Conversation

@ap-wtioit

@ap-wtioit ap-wtioit commented May 6, 2024

Copy link
Copy Markdown
Contributor

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

@ap-wtioit
ap-wtioit force-pushed the 15.0-fix_reset_password branch from 8183118 to a6cac9b Compare May 6, 2024 15:08
@ap-wtioit ap-wtioit changed the title [FIX] password_security: fix Policy applied to reset password dialog [15.0][FIX] password_security: fix Policy applied to reset password dialog May 7, 2024
@pedrobaeza pedrobaeza added this to the 15.0 milestone May 8, 2024
Comment thread password_security/__manifest__.py Outdated
Comment thread password_security/controllers/main.py Outdated
@ap-wtioit
ap-wtioit force-pushed the 15.0-fix_reset_password branch from a6cac9b to da4bc91 Compare May 8, 2024 09:52
@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot merge minor

@OCA-git-bot

Copy link
Copy Markdown
Contributor

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
OCA-git-bot merged commit 207718b into OCA:15.0 May 9, 2024
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants