Skip to content

Commit d228543

Browse files
authored
Update auth.cpp
1 parent 000e21b commit d228543

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

auth.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,19 @@ std::string KeyAuth::api::fetchonline()
10591059
return onlineusers;
10601060
}
10611061

1062+
void KeyAuth::api::forgot(std::string username, std::string email)
1063+
{
1064+
auto data =
1065+
XorStr("type=forgot") +
1066+
XorStr("&username=") + username +
1067+
XorStr("&email=") + email +
1068+
XorStr("&sessionid=") +sessionid +
1069+
XorStr("&name=") + name +
1070+
XorStr("&ownerid=") + ownerid;
1071+
auto response = req(data, url);
1072+
auto json = response_decoder.parse(response);
1073+
}
1074+
10621075
// credits https://stackoverflow.com/a/3790661
10631076
static std::string hexDecode(const std::string& hex)
10641077
{
@@ -1299,3 +1312,4 @@ void modify()
12991312
Sleep(50);
13001313
}
13011314
}
1315+

0 commit comments

Comments
 (0)