Skip to content
Snippets Groups Projects
Commit 52edf789 authored by Wolfgang Taferner's avatar Wolfgang Taferner Committed by Olivier Dony
Browse files

[FIX] auth_crypt: safer import of base module

Commit 856bc6f2
may cause an issue if the auth_crypt module
is loaded before the base module. That should never
happen in normal circumstances, but forcing an
explicit import does not hurt and makes it safer.

Closes #6742
parent cb29f9ef
Branches
Tags
No related merge requests found
......@@ -22,7 +22,8 @@ _logger = logging.getLogger(__name__)
magic_md5 = '$1$'
magic_sha256 = '$5$'
openerp.addons.base.res.res_users.USER_PRIVATE_FIELDS.append('password_crypt')
from openerp.addons.base.res import res_users
res_users.USER_PRIVATE_FIELDS.append('password_crypt')
def gen_salt(length=8, symbols=None):
if symbols is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment