For a username/password prompt, allow saving of the password even if the username is blank.

This commit is contained in:
bryner%brianryner.com 2003-08-06 08:29:38 +00:00
Родитель 01934f5ad1
Коммит cf9f55d8f6
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -158,7 +158,7 @@ nsSingleSignonPrompt::PromptUsernameAndPassword(const PRUnichar* aDialogTitle,
aConfirm);
if (*aConfirm) {
if (checkValue && user[0] != '\0') {
if (checkValue && (user[0] != '\0' || password[0] != '\0')) {
// The user requested that we save the values
// TODO: support SAVE_PASSWORD_FOR_SESSION