reset pass
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user