mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00:00
fix bug 27023, change master password doesn't work in mail
This commit is contained in:
parent
659b7332e1
commit
0ff2686456
@ -2860,6 +2860,9 @@ void WLLT_ChangePassword() {
|
||||
|
||||
/* do nothing if password was never set */
|
||||
if (Wallet_KeySize() < 0) {
|
||||
PRUnichar * message = Wallet_Localize("noPasswordToChange");
|
||||
Wallet_Alert(message);
|
||||
Recycle(message);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -27,6 +27,7 @@ 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?
|
||||
|
@ -299,14 +299,24 @@ function CheckForWallet()
|
||||
// perform a wallet action
|
||||
function WalletAction( action )
|
||||
{
|
||||
|
||||
if (action == "password") {
|
||||
/* process "password" independent of appcore so it can be called from mail */
|
||||
wallet = Components.classes['component://netscape/wallet'];
|
||||
wallet = wallet.getService();
|
||||
wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService);
|
||||
wallet.WALLET_ChangePassword();
|
||||
return;
|
||||
}
|
||||
|
||||
if( appCore ) {
|
||||
switch( action ) {
|
||||
case "safefill":
|
||||
appCore.walletPreview(window, window.content);
|
||||
break;
|
||||
case "password":
|
||||
appCore.walletChangePassword();
|
||||
break;
|
||||
// case "password":
|
||||
// appCore.walletChangePassword();
|
||||
// break;
|
||||
case "quickfill":
|
||||
appCore.walletQuickFillin(window.content);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user