Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5530 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
ago 23
4615
0
mag 25
1697
13
set 24
193591
2
lug 24
12964
1
apr 23
4270