зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
983c0c2eaf
Коммит
b797b11d74
|
@ -2607,9 +2607,10 @@ NS_IMETHODIMP nsImapIncomingServer::OnLogonRedirectionError(const PRUnichar *pEr
|
||||||
FEAlert(progressString, msgWindow);
|
FEAlert(progressString, msgWindow);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 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)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче