From 79485eef3800739070c47f0b0d036101ef235ab1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 24 May 2008 09:17:35 +0000 Subject: [PATCH] fixed amb1684 - regression in password handling --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402179 --- core/AdminCache.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/AdminCache.cpp b/core/AdminCache.cpp index 89749b22..a03c1899 100644 --- a/core/AdminCache.cpp +++ b/core/AdminCache.cpp @@ -1438,6 +1438,12 @@ void AdminCache::SetAdminPassword(AdminId id, const char *password) return; } + if (password[0] == '\0') + { + pUser->password = -1; + return; + } + int i_password = m_pStrings->AddString(password); pUser = (AdminUser *)m_pMemory->GetAddress(id); pUser->password = i_password;