Skip to content
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

[15.0][FIX] password_security: Fix access error on login #609

Closed
wants to merge 1 commit into from

Conversation

fkantelberg
Copy link
Member

Because of [1] Odoo runs into an access error when a password hash will be updated. Previous to the patch the rounds were 25000 and if you login after the patch the same password will be validated and the new one will be updated which will cause Odoo to crash because the user and portal user can't write to the field password_history_ids.

I decided to use sudo because the access handling was already done in super.

Another option would have been to create the res.users.pass.history directly without writing to res.users but portal user don't have the access to that model (only internal users) and I would have to add the security rule.

I added an unittest which is reproducing the error.

[1] OCA/OCB@5502bec

…be updated after the round change from 25000 to 600000 in core odoo
@fkantelberg
Copy link
Member Author

Closed because I haven't seen #594

@JonathanStein
Copy link

Closed because I haven't seen #594

Great, that you made a test case. I think it's easier if you reopen this PR, and I just close mine.

@fkantelberg fkantelberg reopened this Jan 31, 2024
Copy link

github-actions bot commented Jun 2, 2024

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jun 2, 2024
@github-actions github-actions bot closed this Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants