-
-
Notifications
You must be signed in to change notification settings - Fork 632
[18.0][IMP] base_tier_validation: Added password confirmation #1151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[18.0][IMP] base_tier_validation: Added password confirmation #1151
Conversation
|
Hi @LoisRForgeFlow, |
4f17018 to
9482a81
Compare
LauraCForgeFlow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functional testing LGTM 👍
|
Hi @etobella , Could you please review this PR when you have a moment and merge it if everything looks good? Thank you! |
|
@pedrobaeza could you merge here if looks good to you? |
|
I don't think this is correct, as you are only counting if the users have Odoo login, but not OAuth or other forms of login, and besides, it's some kind of duplicated behavior, as you already logged in. I know the login is not closed, but putting this as a way to assure impersonation due to not closing the sessions seems weird. I wouldn't definitively put this on the base module. |
|
Not sure if this is possible to do cleanly but splitting into another module base_tier_validation_password or somesuch will help keep base_tier_validation as small and targeted as possible seems a good idea. The module is already big. |
etobella
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following @pedrobaeza comments, it might happen that the user doesn't have a password if they use passkeys (for example).
I would opt for a new module to add this functionality.
Also, review res.users.identitycheck, this might help you to make it usable in all scenarios 😉
|
Closed in favor of #1213 |
Added a new field to the tier definition that allows setting a password confirmation. Later, during tier validation, the system will ask the user to confirm their password in order to validate or reject. If the comment option is enabled, the password confirmation will be requested after the comment wizard.