From fdb8b3147ef8b928bccfad33021297f11b3e157e Mon Sep 17 00:00:00 2001 From: "Xiaolan.Lee" Date: Sun, 14 Apr 2013 09:50:44 +0800 Subject: [PATCH] Detect old password using when authentication failed and give out instruction to fix it. Signed-off-by: Xiaolan.Lee --- lib/Connection.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Connection.cpp b/lib/Connection.cpp index 94aa2aa..79a9f00 100644 --- a/lib/Connection.cpp +++ b/lib/Connection.cpp @@ -521,6 +521,12 @@ bool Connection::connect(const char *_host, int _port, const char *_username, co m_dbgMethodProgress --; return false; } + if (result == 0xfe) + { + setError ("You are using old password, please update it use PASSWORD(), other than OLD_PASSWORD().", 4, UME_OTHER); + m_dbgMethodProgress --; + return false; + } m_reader.skip();