summaryrefslogtreecommitdiff
path: root/src/net/eathena/loginhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/loginhandler.cpp')
-rw-r--r--src/net/eathena/loginhandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp
index 3293317c8..cd22e44eb 100644
--- a/src/net/eathena/loginhandler.cpp
+++ b/src/net/eathena/loginhandler.cpp
@@ -182,4 +182,16 @@ void LoginHandler::sendMobileCode(const BeingId accountId,
outMsg.writeStringNoLog(code, 6, "code");
}
+void LoginHandler::sendOtpCode(const std::string &code) const
+{
+ if (packetVersionMain < 20181114 &&
+ packetVersionRe < 20181114 &&
+ packets_zero == false)
+ {
+ return;
+ }
+ createOutPacket(CMSG_LOGIN_OTP_CODE);
+ outMsg.writeStringNoLog(code, 9, "code");
+}
+
} // namespace EAthena