Fix for 94775. When redirect login fails, invoke ForgetPassword(), instead of SetPassword(nsnull), to clean up all cached passwords. r=dmose, sr=bienvenu.

This commit is contained in:
cavin%netscape.com 2002-06-03 06:04:47 +00:00
Родитель 983c0c2eaf
Коммит b797b11d74
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -2608,8 +2608,9 @@ NS_IMETHODIMP nsImapIncomingServer::OnLogonRedirectionError(const PRUnichar *pEr
// If password is bad then clean up all cached passwords.
if (badPassword) if (badPassword)
SetPassword(nsnull); ForgetPassword();
PRBool resetUrlState = PR_FALSE; PRBool resetUrlState = PR_FALSE;
if (badPassword && ++m_redirectedLogonRetries <= 3) if (badPassword && ++m_redirectedLogonRetries <= 3)