vince7lf / aerial_wildlife_detection

Tools for detecting wildlife in aerial images using active learning
MIT License
0 stars 0 forks source link

Change admin password #62

Open vince7lf opened 1 year ago

vince7lf commented 1 year ago

How to change the password of the admin user

vince7lf commented 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'\'';'