Add notary email setting
This commit is contained in:
parent
f2886fe2d1
commit
3db51d0cf5
@ -40,6 +40,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|||||||
<option value="la">Louisiana</option>
|
<option value="la">Louisiana</option>
|
||||||
<option value="mt">Montana</option>
|
<option value="mt">Montana</option>
|
||||||
</select>
|
</select>
|
||||||
|
Email address: <input class="form-control" type="email" id="notary_email" />
|
||||||
Location (county/residing at): <input class="form-control" type="text" id="notary_location" />
|
Location (county/residing at): <input class="form-control" type="text" id="notary_location" />
|
||||||
Commission expiration: <input class="form-control" type="text" id="notary_expires" />
|
Commission expiration: <input class="form-control" type="text" id="notary_expires" />
|
||||||
Commission number: <input class="form-control" type="text" id="notary_idnumber" />
|
Commission number: <input class="form-control" type="text" id="notary_idnumber" />
|
||||||
|
@ -21,7 +21,7 @@ function loadKeyFromLocalStorage(callback) {
|
|||||||
$("#lockstatus").css("display", "none");
|
$("#lockstatus").css("display", "none");
|
||||||
if (!inStorage("signingkey") || getStorage("signingkey") == "undefined") {
|
if (!inStorage("signingkey") || getStorage("signingkey") == "undefined") {
|
||||||
showPasswordPrompt("Generating a new signing key (might take a while, be patient). Enter a password to protect it. You'll need to save this password somewhere safe; it cannot be recovered.", function (pass) {
|
showPasswordPrompt("Generating a new signing key (might take a while, be patient). Enter a password to protect it. You'll need to save this password somewhere safe; it cannot be recovered.", function (pass) {
|
||||||
generatePrivateKey(getStorage("notary_name") + " <null@null.com>", pass, function (key) {
|
generatePrivateKey(getStorage("notary_name") + " <" + (inStorage("notary_email") ? getStorage("notary_email") : "null@null.com") + ">", pass, function (key) {
|
||||||
if (typeof key == "undefined") {
|
if (typeof key == "undefined") {
|
||||||
callback("Could not generate key.", false);
|
callback("Could not generate key.", false);
|
||||||
return;
|
return;
|
||||||
|
@ -6,8 +6,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function setupNotaryOptions(name, location, expires, idnumber, state) {
|
function setupNotaryOptions(name, email, location, expires, idnumber, state) {
|
||||||
setStorage("notary_name", name);
|
setStorage("notary_name", name);
|
||||||
|
setStorage("notary_email", email.trim().toLowerCase());
|
||||||
setStorage("notary_location", location);
|
setStorage("notary_location", location);
|
||||||
setStorage("notary_expires", expires);
|
setStorage("notary_expires", expires);
|
||||||
setStorage("notary_idnumber", idnumber);
|
setStorage("notary_idnumber", idnumber);
|
||||||
@ -16,6 +17,7 @@ function setupNotaryOptions(name, location, expires, idnumber, state) {
|
|||||||
|
|
||||||
function openSettingsModal() {
|
function openSettingsModal() {
|
||||||
$("#settingsModal #notary_name").val(getStorage("notary_name"));
|
$("#settingsModal #notary_name").val(getStorage("notary_name"));
|
||||||
|
$("#settingsModal #notary_email").val(getStorage("notary_email"));
|
||||||
$("#settingsModal #notary_location").val(getStorage("notary_location"));
|
$("#settingsModal #notary_location").val(getStorage("notary_location"));
|
||||||
$("#settingsModal #notary_expires").val(getStorage("notary_expires"));
|
$("#settingsModal #notary_expires").val(getStorage("notary_expires"));
|
||||||
$("#settingsModal #notary_idnumber").val(getStorage("notary_idnumber"));
|
$("#settingsModal #notary_idnumber").val(getStorage("notary_idnumber"));
|
||||||
@ -41,6 +43,7 @@ function openSettingsModal() {
|
|||||||
function saveSettingsModal() {
|
function saveSettingsModal() {
|
||||||
setupNotaryOptions(
|
setupNotaryOptions(
|
||||||
$("#settingsModal #notary_name").val(),
|
$("#settingsModal #notary_name").val(),
|
||||||
|
$("#settingsModal #notary_email").val(),
|
||||||
$("#settingsModal #notary_location").val(),
|
$("#settingsModal #notary_location").val(),
|
||||||
$("#settingsModal #notary_expires").val(),
|
$("#settingsModal #notary_expires").val(),
|
||||||
$("#settingsModal #notary_idnumber").val(),
|
$("#settingsModal #notary_idnumber").val(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user