Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5550 Zobrazení

How does the odoo user password is encrypted.Means i have to authenticate a user using the password match the password in the db is protected and the encrypted pwd is available if i can create exact password crypt using the user provided pwd them i can compare it and proceed the sign up.

Avatar
Zrušit
Nejlepší odpověď

In Odoo 9.0 he passwords are encrypted using the passlib python library:

from passlib.context import CryptContext 
print CryptContext(['pbkdf2_sha512']).encrypt('MY_PASSWORD')

This is also necessary to recover lost passwords, see https://github.com/odoo/odoo/issues/9806#issuecomment-255487372

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
srp 23
4648
0
kvě 25
1717
13
zář 24
193685
2
čvc 24
12975
1
dub 23
4312