Bug #34374 --> don't bring up an alert saying the login failed if the user canceled the password dialog

during a redirector request.
This commit is contained in:
mscott%netscape.com 2000-05-11 20:57:02 +00:00
Родитель 24243bee7f
Коммит 787b9a4065
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -1685,6 +1685,11 @@ nsresult nsImapIncomingServer::RequestOverrideInfo(nsIMsgWindow *aMsgWindow)
if (!((const char *) password) || nsCRT::strlen((const char *) password) == 0)
PromptForPassword(getter_Copies(password), aMsgWindow);
// if we still don't have a password then the user must have hit cancel so just
// fall out...
if (!((const char *) password) || nsCRT::strlen((const char *) password) == 0)
return NS_OK;
}
rv = m_logonRedirector->Logon(userName, password, logonRedirectorRequester, nsMsgLogonRedirectionServiceIDs::Imap);