Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
68f7c5d
new module 'auth_admin_passkey' that allow admin user (uid=1) to logi…
legalsylvain Mar 17, 2014
1ec2e11
move 'if' test to avoid useless call to check_credentials function if…
legalsylvain Mar 21, 2014
40a2cea
'auth_admin_passkey' : Manage the special case where an user has the …
legalsylvain Mar 23, 2014
b1daafc
'auth_admin_passkey' : add '.pot' file.
legalsylvain Mar 23, 2014
d9213f1
'auth_admin_passkey' works now indepently from the order of the insta…
legalsylvain Mar 23, 2014
957b44e
Emails are now translated.
legalsylvain Mar 23, 2014
7a88251
Pep8 and import conventions.
legalsylvain Mar 23, 2014
813217b
res_config.py : incorrect call. self.pool('xxx') -> self.pool['xxx'] …
legalsylvain Mar 24, 2014
21018aa
copyright information in all files.
legalsylvain Mar 31, 2014
ad817a6
Pep8.
legalsylvain Mar 31, 2014
9104e15
change order in an algorithm;
legalsylvain Mar 31, 2014
b02aab5
Incorrect import.
legalsylvain Mar 31, 2014
896e5f5
typo.
legalsylvain Mar 31, 2014
74eee81
translation.
legalsylvain Apr 2, 2014
7d977c8
Launchpad automatic translations update.
Apr 9, 2014
8ff02b2
Launchpad automatic translations update.
Apr 17, 2014
8c88331
Launchpad automatic translations update.
Apr 28, 2014
9a38adc
Test #6 to test the bug #1319391; [ADD] Test #1 to #5 to avoid regres…
legalsylvain May 14, 2014
d13bda0
bug #1319391;
legalsylvain May 14, 2014
f5e9947
fix comments;
legalsylvain May 14, 2014
6e75fb4
Launchpad automatic translations update.
May 24, 2014
f8caca8
'auth_admin_passkey': flake8.
legalsylvain Jul 3, 2014
cfba0a0
move all modules to __unported__ on master branch and set installable…
sbidoul Jul 12, 2014
597df63
auth_admin_passkey: migration to 8.0
anthony-muschang Dec 11, 2014
0fb30c7
auth_admin_passkey: move description to README.md
anthony-muschang Dec 15, 2014
cab2a04
auth_admin_passkey: rename README.md to README.rst
anthony-muschang Dec 15, 2014
6bcb45e
auth_admin_passkey: Moved icon
pedrobaeza Jan 16, 2015
34dc71a
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
7a188b3
OCA Transbot updated translations from Transifex
oca-transbot Oct 5, 2015
05a2d6a
prefix versions with 8.0
sbidoul Oct 9, 2015
3b7a09f
Make modules uninstallable
pedrobaeza Oct 14, 2015
ba70403
Rename manifest files
pedrobaeza Oct 6, 2016
a94e079
OCA Transbot updated translations from Transifex
oca-transbot Jan 31, 2016
423f542
auth_admin_passkey to new API (#519)
rvalyi Nov 22, 2016
1a48c60
OCA Transbot updated translations from Transifex
oca-transbot Nov 29, 2016
0750bf3
replace OpenERP with Odoo
gurneyalex Jan 10, 2017
528c2ee
OCA Transbot updated translations from Transifex
oca-transbot Jan 14, 2017
ecdfa81
auth_admin_passkey bug #699
alexis-via Feb 28, 2017
c9d5800
crash when the options "Send email to ..." on the configuration page …
alexis-via Feb 28, 2017
87db1e2
PEP8 fix
alexis-via Mar 2, 2017
03218c6
OCA Transbot updated translations from Transifex
oca-transbot Mar 4, 2017
d8c287c
auth_admin_passkey: Migrate module for odoo 10
Fenkiou Mar 13, 2017
c69bec8
OCA Transbot updated translations from Transifex
oca-transbot Aug 5, 2017
99c63d8
auth_admin_passkey: normal users are not able to read the admin user …
sebalix Aug 10, 2017
81f86fc
OCA Transbot updated translations from Transifex
oca-transbot Dec 2, 2017
2e8e5d8
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
2890f6a
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
c033d0c
Update auth_admin_passkey.pot
oca-travis Jun 24, 2018
db54a84
auth_admin_passkey : AccessError sending mail (#1298)
legalsylvain Jun 25, 2018
cdd648d
Translated using Weblate (Portuguese)
pedrocs-exo Jul 30, 2018
31f5c33
Import safe_eval function instead of module.
Jan 30, 2019
f0e3ce5
Migrate auth_admin_passkey to v12
fkantelberg Jun 28, 2019
9c80bb8
Remove deprecated get_default
fkantelberg Jul 23, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions auth_admin_passkey/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
================================
Authentification - Admin Passkey
================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github
:target: https://github.com/OCA/server-auth/tree/12.0/auth_admin_passkey
:alt: OCA/server-auth
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-auth-12-0/server-auth-12-0-auth_admin_passkey
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/251/12.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

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;

**Table of contents**

.. contents::
:local:

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

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-auth/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-auth/issues/new?body=module:%20auth_admin_passkey%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* GRAP

Contributors
~~~~~~~~~~~~

* Eugen Don <eugen.don@don-systems.de>
* Alexandre Papin (https://twitter.com/Fenkiou)
* Sylvain LE GAL (https://twitter.com/legalsylvain)

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

This module is part of the `OCA/server-auth <https://github.com/OCA/server-auth/tree/12.0/auth_admin_passkey>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions auth_admin_passkey/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 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 models
17 changes: 17 additions & 0 deletions auth_admin_passkey/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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

{
"name": "Authentification - Admin Passkey",
"version": "12.0.1.0.0",
"category": "base",
"author": "GRAP,Odoo Community Association (OCA)",
"website": "http://www.grap.coop",
"license": "AGPL-3",
"depends": ["mail"],
"data": ["data/ir_config_parameter.xml", "views/res_config_view.xml"],
"application": False,
"installable": True,
"auto_install": False,
}
16 changes: 16 additions & 0 deletions auth_admin_passkey/data/ir_config_parameter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="1">

<record id="send_to_admin" model="ir.config_parameter">
<field name="key">auth_admin_passkey.send_to_admin</field>
<field name="value">True</field>
</record>

<record id="send_to_user" model="ir.config_parameter">
<field name="key">auth_admin_passkey.send_to_user</field>
<field name="value">True</field>
</record>

</data>
</odoo>
91 changes: 91 additions & 0 deletions auth_admin_passkey/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * auth_admin_passkey
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-12 03:50+0000\n"
"PO-Revision-Date: 2017-01-11 15:36+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Arabic (http://www.transifex.com/oca/OCA-server-tools-8-0/"
"language/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: auth_admin_passkey
#: code:addons/auth_admin_passkey/models/res_users.py:64
#, python-format
msgid "<pre>User with login '%s' has the same password as you.</pre>"
msgstr ""

#. module: auth_admin_passkey
#: code:addons/auth_admin_passkey/models/res_users.py:39
#, python-format
msgid ""
"Admin user used his passkey to login with '%s'.\n"
"\n"
"\n"
"\n"
"Technicals informations belows : \n"
"\n"
"- Login date : %s\n"
"\n"
msgstr ""

#. module: auth_admin_passkey
#: model:ir.ui.view,arch_db:auth_admin_passkey.view_res_config_settings
msgid "Passkey"
msgstr ""

#. module: auth_admin_passkey
#: code:addons/auth_admin_passkey/models/res_users.py:38
#, python-format
msgid "Passkey used"
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model.fields,field_description:auth_admin_passkey.field_base_config_settings_auth_admin_passkey_send_to_admin
msgid "Send email to admin user."
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model.fields,field_description:auth_admin_passkey.field_base_config_settings_auth_admin_passkey_send_to_user
msgid "Send email to user."
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model,name:auth_admin_passkey.model_res_users
msgid "Users"
msgstr "المستخدمون"

#. module: auth_admin_passkey
#: model:ir.model.fields,help:auth_admin_passkey.field_base_config_settings_auth_admin_passkey_send_to_user
msgid ""
"When the administrator use his password to login in with a different "
"account, Odoo will send an email to the account user."
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model.fields,help:auth_admin_passkey.field_base_config_settings_auth_admin_passkey_send_to_admin
msgid ""
"When the administrator use his password to login in with a different "
"account, Odoo will send an email to the admin user."
msgstr ""

#. module: auth_admin_passkey
#: code:addons/auth_admin_passkey/models/res_users.py:62
#, python-format
msgid "[WARNING] Odoo Security Risk"
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model,name:auth_admin_passkey.model_base_config_settings
msgid "base.config.settings"
msgstr ""
82 changes: 82 additions & 0 deletions auth_admin_passkey/i18n/auth_admin_passkey.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * auth_admin_passkey
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: auth_admin_passkey
#: code:addons/auth_admin_passkey/models/res_users.py:64
#, python-format
msgid "<pre>User with login '%s' has the same password as you.</pre>"
msgstr ""

#. module: auth_admin_passkey
#: code:addons/auth_admin_passkey/models/res_users.py:39
#, python-format
msgid "Admin user used his passkey to login with '%s'.\n"
"\n"
"\n"
"\n"
"Technicals informations belows : \n"
"\n"
"- Login date : %s\n"
"\n"
""
msgstr ""

#. module: auth_admin_passkey
#: model:ir.ui.view,arch_db:auth_admin_passkey.view_res_config_settings
msgid "Passkey"
msgstr ""

#. module: auth_admin_passkey
#: code:addons/auth_admin_passkey/models/res_users.py:38
#, python-format
msgid "Passkey used"
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model.fields,field_description:auth_admin_passkey.field_base_config_settings_auth_admin_passkey_send_to_admin
msgid "Send email to admin user."
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model.fields,field_description:auth_admin_passkey.field_base_config_settings_auth_admin_passkey_send_to_user
msgid "Send email to user."
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model,name:auth_admin_passkey.model_res_users
msgid "Users"
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model.fields,help:auth_admin_passkey.field_base_config_settings_auth_admin_passkey_send_to_user
msgid "When the administrator use his password to login in with a different account, Odoo will send an email to the account user."
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model.fields,help:auth_admin_passkey.field_base_config_settings_auth_admin_passkey_send_to_admin
msgid "When the administrator use his password to login in with a different account, Odoo will send an email to the admin user."
msgstr ""

#. module: auth_admin_passkey
#: code:addons/auth_admin_passkey/models/res_users.py:62
#, python-format
msgid "[WARNING] Odoo Security Risk"
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model,name:auth_admin_passkey.model_base_config_settings
msgid "base.config.settings"
msgstr ""

Loading