Open vince7lf opened 1 year ago
refer to doc/change_admin_password.md
import bcrypt
bcrypt.hashpw(b'Aide!234', bcrypt.gensalt(12))
b'$2b$12$e2x3G8G7RXXS2sMoUK8F0./nDuxyuvGgkp3L6kvURh/ESvPXchEje'
sudo -u postgres psql -d ailabeltooldb -c 'UPDATE aide_admin.user set hash='\''$2b$12$5zj2E7D8f5XnQzE1tEgf.emwUzFTbR6Fjnmg8/PdRIyrBn9psyk6.'\'' where name='\''admin'\'';'
How to change the password of the admin user