1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 /* import-globals-from pippki.js */
7 document.addEventListener("dialogaccept", resetPassword);
9 function resetPassword() {
10 var pk11db = Cc["@mozilla.org/security/pk11tokendb;1"].getService(
13 var token = pk11db.getInternalKeyToken();
17 Services.logins.removeAllUserFacingLogins();
20 let l10n = new Localization(["security/pippki/pippki.ftl"], true);
22 Services.prompt.alert(
24 l10n.formatValueSync("pippki-reset-password-confirmation-title"),
25 l10n.formatValueSync("pippki-reset-password-confirmation-message")