My mistakes

Archive for August 2016

 

username@hostname:~$ python

>>>from passlib.context import CryptContext
>>>print CryptContext(['pbkdf2_sha512']).encrypt('PASSWORD')
$pbkdf2-sha512$25000$U.r9H4Ow9l5LiVHq3dt77w$q0f2q/WcDLD3I8/KzB3E4TqJ6vaKIXqWySE8HyRCzJXbh4N8wZtcJjN2zPQ5337PYep6IFFIUeoshUm1beMifg

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;