Skip to content

Conversation

@legalsylvain
Copy link
Contributor

Port auth_admin_passkey from 10.0 to 12.0

Main changes

CC : @pedrobaeza, @alexis-via, @rvalyi, @eugen-don, @rafaelbn

One question to @Fenkiou

You introduced the following code in that commit (PR to port the module in V10). I did'nt get this part. (I keep it, but I don't see it necessary).

        # Just be sure that parent methods aren't wrong
        user = self.sudo().search([('id', '=', self._uid)])
        if not user:
            raise

legalsylvain and others added 30 commits August 9, 2019 11:42
…ion if user_id == SUPERUSER_ID. (Courtesy of Stefan Rijnhart).
…s the same password as the admin user, sending a mail to admin user.
… installation of modules 'auth_admin_passkey' and 'auth_crypt'. (Courtesy of Stefan Rijnhart).
…xxx']

[REF] res_users.py : same call to self.pool in other res_users class.
[ADD] Test OCA#1 to OCA#5 to avoid regression;
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
gurneyalex and others added 17 commits August 9, 2019 11:43
this fixes an issue reported on Transifex
Remove authenticate as check_credentials is dedicated for this
purpose.

Removed mail translations maybe possible in some way ?
Give some space to the code

Make the addon compliant to OCA guidelines
Adapt readme to new template and compress header in tests
Make the addon a python package

NOTE: authenticate() method cannot be used in tests because a new cr
is created in _login method that does not contains our user.

Signed-off-by: Eugen Don <eugen.don@don-systems.de>
… user email. If a normal user and the administrator have the same password, an AccessError is raised (email of the admin account can not be read) and no security alert is sent by email
Currently translated at 90.9% (10 of 11 strings)

Translation: server-tools-10.0/server-tools-10.0-auth_admin_passkey
Translate-URL: https://translation.odoo-community.org/projects/server-tools-10-0/server-tools-10-0-auth_admin_passkey/pt/
[REF+IMP] move configuration for ir.config.parameter to odoo.cfg files, ref : OCA#21 So :
- It's more GDPR compatible, because only system administrators that have already a full DB access can enable and use this feature
- It's easier to have different settings, according to server env
[REF] OCA convention (readme files, etc...)
@legalsylvain legalsylvain added this to the 12.0 milestone Aug 9, 2019
Copy link
Member

@rafaelbn rafaelbn left a comment

Choose a reason for hiding this comment

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

nice work @legalsylvain

@Olivier-LAURENT
Copy link

Tested... 👍 . Thx for the work @legalsylvain

@legalsylvain
Copy link
Contributor Author

Thanks for the reviews, guys.

@legalsylvain
Copy link
Contributor Author

/ocabot merge

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 12.0-ocabot-merge-pr-126-by-legalsylvain-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 1, 2019
Signed-off-by legalsylvain
@OCA-git-bot OCA-git-bot merged commit 64b2b4f into OCA:12.0 Oct 1, 2019
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at d55341b. Thanks a lot for contributing to OCA. ❤️

SiesslPhillip pushed a commit to grueneerde/OCA-server-auth that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-auth (12.0)
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.