File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff 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
10631076static std::string hexDecode (const std::string& hex)
10641077{
@@ -1299,3 +1312,4 @@ void modify()
12991312 Sleep (50 );
13001313 }
13011314}
1315+
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ namespace KeyAuth {
3939 bool chatsend (std::string message, std::string channel);
4040 void changeusername (std::string newusername);
4141 std::string fetchonline ();
42+ void forgot (std::string username, std::string email);
4243
4344 class subscriptions_class {
4445 public:
You can’t perform that action at this time.
0 commit comments