Juan Salcedo
Juan Salcedo

Reputation: 1668

Where is the match validation for reset password in OpenERP [V8 Odoo]

I was trying to add more security politics, but I can't find where is the match validation for the 2 fields Password and Confirm Password, I was putting intensionally 2 different passwords in the fields to see the red advertisement, and I look in auth_singup module (/view/auth_signup_login.xml) and I only found the template to the view below. enter image description here

Upvotes: 0

Views: 538

Answers (1)

I just searched for "passwords do not match" and IntelliJ took me to

addons/auth_signup/controllers/main.py:116.

This is where an assert is introduced to check if the passwords match. The simplest thing would be to add an assert with your custom message, following their example. Good luck!

Upvotes: 1

Related Questions