Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
Detect old password using when authentication failed and give out ins…
Browse files Browse the repository at this point in the history
…truction to fix it.

Signed-off-by: Xiaolan.Lee <[email protected]>
  • Loading branch information
LeeXiaolan committed Apr 14, 2013
1 parent c007a6b commit fdb8b31
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit fdb8b31

Please sign in to comment.