コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5546 ビュー

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.

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
8月 23
4647
0
5月 25
1709
13
9月 24
193657
2
7月 24
12971
1
4月 23
4296