Fix password reset commands - remove emoji to avoid encoding issues
This commit is contained in:
12
WIKI.md
12
WIKI.md
@@ -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()
|
||||||
"
|
"
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user