reset pass

This commit is contained in:
CHIEFSOFT\ameye
2024-02-11 15:07:24 -05:00
parent 828fabc075
commit ab897badd0
+2
View File
@@ -1442,6 +1442,8 @@ long WrenchResetMemberPass(CVars in, CVars &out) {
try {
REQ_STRING(in, "email", 2, 49, "(.*)");
REQ_STRING(in, "rloc", 2, 15, "(.*)");
//password_reset
CVars yy;
if (load_db_record(yy, "SELECT id AS member_id, uid AS member_uid FROM members WHERE username = '%s'", in["email"].c_str())) {
member_id = yy["member_id"].Long();