Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
5532 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
elok. 23
4621
0
toukok. 25
1699
13
syysk. 24
193596
2
heinäk. 24
12964
1
huhtik. 23
4271