Fix password reset commands - remove emoji to avoid encoding issues

This commit is contained in:
2025-12-16 19:51:25 +05:00
parent 1fda6a595b
commit 2541360f51

12
WIKI.md
View File

@@ -1176,9 +1176,9 @@ admin = db.query(User).filter(User.username == 'admin').first()
if admin: if admin:
admin.hashed_password = get_password_hash('admin123') admin.hashed_password = get_password_hash('admin123')
db.commit() db.commit()
print('✅ Admin password reset to: admin123') print('Admin password reset to: admin123')
else: else:
print('❌ Admin user not found') print('Admin user not found')
db.close() db.close()
" "
``` ```
@@ -1197,9 +1197,9 @@ admin = db.query(User).filter(User.username == 'admin').first()
if admin: if admin:
admin.hashed_password = get_password_hash('YOUR_NEW_PASSWORD') admin.hashed_password = get_password_hash('YOUR_NEW_PASSWORD')
db.commit() db.commit()
print('✅ Admin password has been reset') print('Admin password has been reset')
else: else:
print('❌ Admin user not found') print('Admin user not found')
db.close() db.close()
" "
``` ```
@@ -1218,9 +1218,9 @@ user = db.query(User).filter(User.username == 'USERNAME').first()
if user: if user:
user.hashed_password = get_password_hash('newpassword123') user.hashed_password = get_password_hash('newpassword123')
db.commit() db.commit()
print('✅ Password reset for user: USERNAME') print('Password reset for user: USERNAME')
else: else:
print('❌ User not found') print('User not found')
db.close() db.close()
" "
``` ```