forked from odoo/odoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] base: Revoke access to your account to all devices
Prior to this, there was no way to shut an active session you didn't have the access to anymore or close every active session remotely. Adding the RevokeAllDevices class, it is now possible to close every open sessions, including the one you are performing the action on of the account you are logged into via the Account Security page in the preferences. This system is based on the principle that every open session uses the password hash to maintain it. When the hash is computed, salt is added to it to make it not reversible. Thanks to that salt, it is possible to change the user's password's hash without changing the password. Therefore, the flow of this addition is the following : 1. User clicks on the button and uses his passord to confirm identity. 2. User's input is used to check his identity (_check_credentials()). 3. User's input is used to refresh the password hash in the db (_change_password()). 4. User is logged out. This adds a way to close all sessions remotely and improve user's control over their account and therefore their security. task-3191567 closes odoo#113899 Related: odoo/upgrade#4951 Signed-off-by: Martin Trigaux (mat) <[email protected]>
- Loading branch information
Showing
10 changed files
with
372 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.