My mistakes

Reset odoo admin password

Posted on: August 2, 2016


username@hostname:~$ python

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

Replace the PASSWORD with the appropriate password.

username@hostname:~$su - postgres_username
postgres_username@hostname:~$psql -t database_name
database_name=#UPDATE res_users SET password='', password_crypt='$pbkdf2-sha512$25000$U.r9H4Ow9l5LiVHq3dt77w$q0f2q/WcDLD3I8/KzB3E4TqJ6vaKIXqWySE8HyRCzJXbh4N8wZtcJjN2zPQ5337PYep6IFFIUeoshUm1beMifg' WHERE id=1;



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: