forked from rDrama/rDrama
stop the 12345678 approach
parent
6a816555a5
commit
5133f94c12
|
@ -1937,9 +1937,11 @@ def admin_reset_password(user_id, v):
|
||||||
g.db.add(ma)
|
g.db.add(ma)
|
||||||
|
|
||||||
text = f"At your request, @{v.username} (a site admin) has reset your password to `{new_password}`, please change this to something else for personal security reasons. And be sure to save it this time, retard."
|
text = f"At your request, @{v.username} (a site admin) has reset your password to `{new_password}`, please change this to something else for personal security reasons. And be sure to save it this time, retard."
|
||||||
|
|
||||||
send_repeatable_notification(user.id, text)
|
send_repeatable_notification(user.id, text)
|
||||||
|
|
||||||
|
text = f"@{v.username}'s new password is `{new_password}`"
|
||||||
|
send_repeatable_notification(v.id, text)
|
||||||
|
|
||||||
return {"message": f"@{user.username}'s password has been reset! The new password has been messaged to them!"}
|
return {"message": f"@{user.username}'s password has been reset! The new password has been messaged to them!"}
|
||||||
|
|
||||||
@app.get("/admin/orgies")
|
@app.get("/admin/orgies")
|
||||||
|
|
Loading…
Reference in New Issue