fix bug 28151, change password when no password established should establish new password

This commit is contained in:
morse%netscape.com 2000-03-12 01:09:14 +00:00
Родитель 4cc4ebd8c4
Коммит 00c5c7c2f0
2 изменённых файлов: 9 добавлений и 4 удалений

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

@ -2863,10 +2863,16 @@ extern int SI_LoadSignonData(PRBool fullLoad);
PUBLIC
void WLLT_ChangePassword() {
/* do nothing if password was never set */
if (Wallet_KeySize() < 0) {
PRUnichar * message = Wallet_Localize("noPasswordToChange");
Wallet_Alert(message);
/* have user create database key if one was never created */
PRUnichar * message = Wallet_Localize("IncorrectKey_TryAgain?");
while (!Wallet_SetKey(PR_FALSE)) {
if (Wallet_CancelKey() || (Wallet_KeySize() < 0) || !Wallet_Confirm(message)) {
Recycle(message);
return;
}
}
Recycle(message);
return;
}

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

@ -28,7 +28,6 @@ newPassword = Select a new master password.#(Leave fields blank if you don't wan
enterPassword = Enter a master password
confirmPassword = Retype the master password
confirmFailed_TryAgain? = The two master passwords were not identical. Please enter the same master password in both fields.
noPasswordToChange = There is no master password to change.
SelectUser = Select a username to be entered on this form.
SelectUserWhosePasswordIsBeingChanged = Select the user whose password is being changed.
PasswordNotification = For your convenience, the browser can remember your user names and passwords so you won't have to re-type them in the future. Your passwords will be obscured before being saved on your hard drive. Do you want this feature enabled?