Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auth_admin_passkey: Migrate module for odoo 10
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>
- Loading branch information
Showing
15 changed files
with
412 additions
and
326 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,80 @@ | ||
Admin password become a passkey for all active logins | ||
===================================================== | ||
|
||
Functionality : | ||
--------------- | ||
* Administrator has now the possibility to login in with any login; | ||
* By default, Odoo will send a mail to user and admin to indicate them; | ||
* If a user and the admin have the same password, admin will be informed; | ||
|
||
Technical information : | ||
----------------------- | ||
* Create two ir_config_parameter to enable / disable mail sending; | ||
|
||
Copyright, Author and Licence : | ||
------------------------------- | ||
* Copyright : 2014, Groupement Régional Alimentaire de Proximité; | ||
* Author : Sylvain LE GAL (https://twitter.com/legalsylvain); | ||
* Licence : AGPL-3 (http://www.gnu.org/licenses/) | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
==================== | ||
Auth Admin - Passkey | ||
==================== | ||
|
||
This module extends the functionality of users module to support loging in with the administrator password | ||
in other user accounts. | ||
|
||
* Administrator has now the possibility to login in with any login; | ||
* By default, Odoo will send a mail to user and admin to indicate them; | ||
* If a user and the admin have the same password, admin will be informed; | ||
|
||
|
||
Configuration | ||
============= | ||
|
||
To enable notifications for login attempts, you need to: | ||
|
||
Go to Settings > General Settings. | ||
|
||
Enable the "Send email to admin user" and / or "Send email to user" checkbox | ||
|
||
|
||
Usage | ||
===== | ||
|
||
To login into a different user account type in the user name of the account and the password of the administrator at the login screen | ||
|
||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/149/10.0 | ||
|
||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
None | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/OCA/server-tools/issues>`_. In case of trouble, please | ||
check there if your issue has already been reported. If you spotted it first, | ||
help us smash it by providing detailed and welcomed feedback. | ||
|
||
Credits | ||
======= | ||
|
||
Images | ||
------ | ||
|
||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. | ||
|
||
Contributors | ||
------------ | ||
|
||
* Eugen Don <eugen.don@don-systems.de> | ||
* Alexandre Papin (https://twitter.com/Fenkiou) | ||
* Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
|
||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
To contribute to this module, please visit https://odoo-community.org. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,9 @@ | ||
# -*- encoding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# Admin Passkey module for Odoo | ||
# Copyright (C) 2013-2014 GRAP (http://www.grap.coop) | ||
# @author Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as | ||
# published by the Free Software Foundation, either version 3 of the | ||
# License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
############################################################################## | ||
# -*- coding: utf-8 -*- | ||
# Copyright (C) 2013-2014 GRAP (http://www.grap.coop) | ||
# @author Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
from . import res_config | ||
from . import res_users | ||
from . import ( | ||
res_config, | ||
res_users, | ||
) |
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.