summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/server_session.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/server_session.cpp b/server/src/server_session.cpp
index d8c4f07..25e7820 100644
--- a/server/src/server_session.cpp
+++ b/server/src/server_session.cpp
@@ -130,11 +130,11 @@ void server_session::handle_command(client_msg *msg)
m.mutable_auth_reply()->set_status(true);
else
{
- switch(msg->auth_info().hash_type())
+ switch(msg->auth_request().hash_type())
{
case PASSWD_HASH_TYPE::HASH_NONE:
{
- if(msg->auth_info().password() != server_password)
+ if(msg->auth_request().password() != server_password)
{
m.mutable_auth_reply()->set_status(false);
m.mutable_auth_reply()->set_error_description("wrong password");
@@ -157,7 +157,7 @@ void server_session::handle_command(client_msg *msg)
{
unsigned char hash[64];
SHA512((unsigned char*)server_password.c_str(), server_password.length(), hash);
- if(msg->auth_info().password() != std::string((const char*)hash))
+ if(msg->auth_request().password() != std::string((const char*)hash))
{
m.mutable_auth_reply()->set_status(false);
m.mutable_auth_reply()->set_error_description("wrong password");