Skip to content

[MIG] password_security to 11#4

Closed
mart-e wants to merge 11 commits intoOCA:11.0from
mart-e:11.0-migrate-password-security
Closed

[MIG] password_security to 11#4
mart-e wants to merge 11 commits intoOCA:11.0from
mart-e:11.0-migrate-password-security

Conversation

@mart-e
Copy link
Copy Markdown

@mart-e mart-e commented Oct 29, 2017

Move to server-auth
Bump version number
Remove coding utf-8

As it is the hacktoberfest, it is the occasion to help outside projects than Odoo

Note: while testing this module, I noticed the error message during signup to be badly formed (('Password must be 12 characters or more.\rMust contain the following:\r\n* Lowercase letter\r\n* Uppercase letter\r\n* Numeric digit\r\n* Special character', '')) but it looks this is actually a bug of auth_signup that UserError are not properly displayed in the signup form.
Will check on core how to fix that so you may want to wait that this bug is fixed before merging this one.

@pedrobaeza
Copy link
Copy Markdown
Member

@mart-e how good is to see you contributing to OCA! Thanks for the PR.

I see that you have realized about the split of server-tools as it was very over-crowded. The only problem is about commit history. Please see migration guide https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-11.0, but in this case you will need to add as remote server-tools and change slightly the git am command for catching the commits from this repo instead of origin, but nothing complicated for a git-fu like you 😉

lasley and others added 11 commits October 29, 2017 19:29
* [ADD] res_users_password_security: New module
* Create new module to lock down user passwords

* [REF] res_users_password_security: PR Review fixes
* Also add beta pass history rule

* [ADD] res_users_password_security: Pass history and min time
* Add pass history memory and threshold
* Add minimum time for pass resets through web reset

* Begin controller tests

* Fix copyright, wrong year for new file

* Add tests for password_security_home
* Left to do web_auth_reset_password

* Fix minimum reset threshold and finish tests

* Bug fixes per review

* [REF] password_security: PR review improvements
* Change tech name to password_security
* Use new except format
* Limit 1 & new api
* Cascade deletion for pass history

* [REF] password_security: Fix travis + style
* Fix travis errors
* self to cls
* Better variable names in tests

* [FIX] password_security: Fix travis errors
* Bump versions
* Installable to True
* Add Usage section to ReadMe w/ Runbot link
* `_crypt_context` now directly exposes the `CryptContext`
* Change all instances of openerp to odoo
* Add current time as password_write_date for admin user in demo, disabling the reset prompt - fixes OCA#652
* Switch security to be on correct model to fix OCA#674
…ord invalid (OCA#859)

* [FIX] password_security: Fix password stored

* [REF] password_security: use a unified check_password private method to validate rules and history password
* Add logic to overloaded web_login action to log out users with expired
passwords, preventing the password reset from being ignored
* Add unit test for new logic
Move to server-auth
Bump version number
Remove coding utf-8
@mart-e mart-e force-pushed the 11.0-migrate-password-security branch from 826b022 to 2e79a99 Compare October 29, 2017 18:29
Copy link
Copy Markdown
Contributor

@lasley lasley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mart-e

@pedrobaeza
Copy link
Copy Markdown
Member

There's already another PR for the same module in #3. This one passes all the CIs and the other not, but we should agree what to do, as first PR usually has priority.

@mart-e
Copy link
Copy Markdown
Author

mart-e commented Oct 30, 2017

Oh I missed that one. Sure, if he fixes all the issues, it should have the priority obviously.

@mart-e
Copy link
Copy Markdown
Author

mart-e commented Oct 30, 2017

FYI, the issue in the rendering of the error message was fixed upstream at odoo/odoo@c3bf1618bd9

@pedrobaeza
Copy link
Copy Markdown
Member

Thanks for that, Martin!

@yajo yajo added this to the 11.0 milestone Oct 31, 2017
Copy link
Copy Markdown
Member

@yajo yajo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code review

@yajo
Copy link
Copy Markdown
Member

yajo commented Oct 31, 2017

Oops, I think we should close this in favor of #3, no?

@mart-e mart-e closed this Oct 31, 2017
@mart-e mart-e deleted the 11.0-migrate-password-security branch October 31, 2017 08:56
SiesslPhillip pushed a commit to grueneerde/OCA-server-auth that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-auth (11.0)
OCA-git-bot pushed a commit that referenced this pull request Apr 3, 2025
…que-user

[IMP] Ensure login unicity for users coming from cross server client
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.

8 participants