summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-08 01:35:19 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-08 01:35:19 +0300
commit676c5e978cbb312fbf4df8ec396c0f8b08944a96 (patch)
tree3336dda58d228fdada40453d80769e5186dab845 /src/net/eathena
parent0d9e625499c18a4eaf79d38dfb1ef6abf0c553bd (diff)
downloadManaVerse-676c5e978cbb312fbf4df8ec396c0f8b08944a96.tar.gz
ManaVerse-676c5e978cbb312fbf4df8ec396c0f8b08944a96.tar.bz2
ManaVerse-676c5e978cbb312fbf4df8ec396c0f8b08944a96.tar.xz
ManaVerse-676c5e978cbb312fbf4df8ec396c0f8b08944a96.zip
Add support for enter auth pincode.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/charserverhandler.cpp8
-rw-r--r--src/net/eathena/charserverhandler.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index a62c79c3b..71bf6aeee 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -206,6 +206,14 @@ void CharServerHandler::setNewPincode(const BeingId accountId,
outMsg.writeString(pin, 4, "encrypted pin");
}
+void CharServerHandler::sendCheckPincode(const BeingId accountId,
+ const std::string &pin) const
+{
+ createOutPacket(CMSG_CHAR_PIN_CHECK);
+ outMsg.writeBeingId(accountId, "account id");
+ outMsg.writeString(pin, 4, "encrypted pin");
+}
+
void CharServerHandler::renameCharacter(const BeingId id,
const std::string &newName) const
{
diff --git a/src/net/eathena/charserverhandler.h b/src/net/eathena/charserverhandler.h
index 9e02dce1f..f41b14a79 100644
--- a/src/net/eathena/charserverhandler.h
+++ b/src/net/eathena/charserverhandler.h
@@ -65,6 +65,9 @@ class CharServerHandler final : public Ea::CharServerHandler
void setNewPincode(const BeingId accountId,
const std::string &pin) const override final;
+ void sendCheckPincode(const BeingId accountId,
+ const std::string &pin) const override final;
+
/**
* Sets the character create dialog. The handler will clean up this
* dialog when a new character is successfully created, and will unlock