aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver/Server/AuthSocket.cpp
diff options
context:
space:
mode:
authorclick <none@none>2010-12-21 05:50:19 +0100
committerclick <none@none>2010-12-21 05:50:19 +0100
commit2f80f1b2f8906131e5b743e43e8351ef20d4a987 (patch)
tree6069494cb141e6966714098358a0cd30e54174c8 /src/server/authserver/Server/AuthSocket.cpp
parenta22818ae093bee06a7b04900da5035040762064c (diff)
Core/AuthServer: Allow reauthentication to the authserver on realm logout. Thanks to .. someone (webmaster?)
Fixes issue 4191. --HG-- branch : trunk
Diffstat (limited to 'src/server/authserver/Server/AuthSocket.cpp')
-rwxr-xr-xsrc/server/authserver/Server/AuthSocket.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/authserver/Server/AuthSocket.cpp b/src/server/authserver/Server/AuthSocket.cpp
index 5338d7f312e..7f39c09beb6 100755
--- a/src/server/authserver/Server/AuthSocket.cpp
+++ b/src/server/authserver/Server/AuthSocket.cpp
@@ -741,6 +741,13 @@ bool AuthSocket::_HandleReconnectChallenge()
return false;
}
+ // Reinitialize build, expansion and the account securitylevel
+ _build = ch->build;
+ _expversion = (AuthHelper::IsPostBCAcceptedClientBuild(_build) ? POST_BC_EXP_FLAG : NO_VALID_EXP_FLAG) | (AuthHelper::IsPreBCAcceptedClientBuild(_build) ? PRE_BC_EXP_FLAG : NO_VALID_EXP_FLAG);
+
+ uint8 secLevel = fields[2].GetUInt8();
+ _accountSecurityLevel = secLevel <= SEC_ADMINISTRATOR ? AccountTypes(secLevel) : SEC_ADMINISTRATOR;
+
K.SetHexStr ((*result)[0].GetCString());
// Sending response