Bug 511320 - When FIPS mode change fails, inform the user. r=kaie

This commit is contained in:
glen beasley 2010-07-18 22:27:23 +02:00
Родитель bd1ab3db86
Коммит 63423c7d31
2 изменённых файлов: 11 добавлений и 4 удалений

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

@ -151,6 +151,7 @@ devinfo_stat_ready=Ready
enable_fips=Enable FIPS
disable_fips=Disable FIPS
fips_nonempty_password_required=FIPS mode requires that you have a Master Password set for each security device. Please set the password before trying to enable FIPS mode.
unable_to_toggle_fips=Unable to change the FIPS mode for the security device. It is recommended that you exit and restart this application.
# CRL next update.
crlNextUpdateMsg1=%S cannot establish an encrypted connection with "%S".

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

@ -386,8 +386,7 @@ function doLogin()
bundle.GetStringFromName("devinfo_stat_notloggedin"));
}
} catch (e) {
var alertStr = bundle.GetStringFromName("login_failed");
doPrompt(alertStr);
doPrompt(bundle.GetStringFromName("login_failed"));
}
enableButtons();
}
@ -541,8 +540,15 @@ function toggleFIPS()
return;
}
}
secmoddb.toggleFIPSMode();
try {
secmoddb.toggleFIPSMode();
}
catch (e) {
doPrompt(bundle.GetStringFromName("unable_to_toggle_FIPS"));
return;
}
//Remove the existing listed modules so that re-fresh doesn't
//display the module that just changed.
ClearDeviceList();