diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-01-24 00:38:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-01-25 02:39:13 +0300 |
commit | 2811da7ca1e50f0d0cfcf44c98e78aa118bd9d7f (patch) | |
tree | 025bed0b429dd36c65d63b0507ef0eeeb0c8e944 /src/net/eathena/loginrecv.cpp | |
parent | 852ca6c80f1c7958b08f0bafcb783a48a51aabb8 (diff) | |
download | manaverse-2811da7ca1e50f0d0cfcf44c98e78aa118bd9d7f.tar.gz manaverse-2811da7ca1e50f0d0cfcf44c98e78aa118bd9d7f.tar.bz2 manaverse-2811da7ca1e50f0d0cfcf44c98e78aa118bd9d7f.tar.xz manaverse-2811da7ca1e50f0d0cfcf44c98e78aa118bd9d7f.zip |
Add packet SMSG_LOGIN_OTP
Diffstat (limited to 'src/net/eathena/loginrecv.cpp')
-rw-r--r-- | src/net/eathena/loginrecv.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/net/eathena/loginrecv.cpp b/src/net/eathena/loginrecv.cpp index cfd067cf7..047c243e9 100644 --- a/src/net/eathena/loginrecv.cpp +++ b/src/net/eathena/loginrecv.cpp @@ -303,4 +303,30 @@ void LoginRecv::processLoginData(Net::MessageIn &msg) client->setState(State::WORLD_SELECT); } +void LoginRecv::processLoginOtp1(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + const int tokenLen = msg.readInt16("len") - 8; + msg.readInt32("login flag"); + msg.readString(tokenLen, "token"); +} + +void LoginRecv::processLoginOtp2(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + const int tokenLen = msg.readInt16("len") - 14; + msg.readInt32("login flag"); + msg.readString(6, "login flag2"); + msg.readString(tokenLen, "token"); +} + +void LoginRecv::processLoginOtp3(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + const int tokenLen = msg.readInt16("len") - 28; + msg.readInt32("login flag"); + msg.readString(20, "login flag2"); + msg.readString(tokenLen, "token"); +} + } // namespace EAthena |