Skip to content

Commit 8154ff4

Browse files
committed
fixed:Password handling issues
1 parent 3bf24ab commit 8154ff4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

XEngine_Source/StorageModule_Session/Session_User/Session_User.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,13 @@ BOOL CSession_User::Session_User_Exist(LPCTSTR lpszUser, LPCTSTR lpszPass)
127127
return FALSE;
128128
}
129129

130+
if (_tcslen(lpszPass) != _tcslen(stl_MapIterator->second.tszUserPass))
131+
{
132+
Session_IsErrorOccur = TRUE;
133+
Session_dwErrorCode = ERROR_STORAGE_MODULE_SESSION_PASSWORD;
134+
st_Locker.unlock_shared();
135+
return FALSE;
136+
}
130137
if (0 != _tcsncmp(lpszPass, stl_MapIterator->second.tszUserPass, _tcslen(lpszPass)))
131138
{
132139
Session_IsErrorOccur = TRUE;

0 commit comments

Comments
 (0)