Files
odoo_source/addons/auth_password_policy
Hubert Van de Walle (huvw) bc70627cba [FIX] auth_password_policy: allow to start a password with a special char
Steps to reproduce
==================

- Go into sign-in > Don't have an account
- Enter a password starting with a special character (ie: $)

Uncaught Javascript Error > Failed to set the 'value' property on 'HTMLMeterElement': The provided double value is non-finite.

Cause of the issue
==================

`(password.split(/[^\W_]+/).length - 1)` -> 0
`0 / 0` -> NaN
`Math.min(NaN, 1.0)` -> NaN

opw-3397932

closes odoo/odoo#127337

X-original-commit: e377aae101477b414d5391036477280a0c18445c
Signed-off-by: Vranckx Florian (flvr) <flvr@odoo.com>
Signed-off-by: Hubert Van De Walle <huvw@odoo.com>
2023-07-05 09:01:10 +02:00
..
…