security/manager/pki/resources/content/changepassword.xul

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <?xml version="1.0"?>
michael@0 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 - License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
michael@0 5
michael@0 6 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
michael@0 7
michael@0 8 <!DOCTYPE dialog SYSTEM "chrome://pippki/locale/pippki.dtd">
michael@0 9
michael@0 10 <dialog id="set_password" title="&setPassword.title;"
michael@0 11 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 12 buttons="accept,cancel"
michael@0 13 ondialogaccept="return setPassword();"
michael@0 14 onload="onLoad();">
michael@0 15
michael@0 16 <stringbundle id="pippki_bundle" src="chrome://pippki/locale/pippki.properties"/>
michael@0 17
michael@0 18 <script type="application/javascript" src="chrome://pippki/content/password.js"/>
michael@0 19
michael@0 20 <hbox align="center">
michael@0 21 <label value="&setPassword.tokenName.label;: "/>
michael@0 22 <label id="tokenName" />
michael@0 23 <menulist id="tokenMenu" oncommand="onMenuChange()">
michael@0 24 <menupopup/>
michael@0 25 </menulist>
michael@0 26 </hbox>
michael@0 27
michael@0 28
michael@0 29 <!--
michael@0 30 <menulist id="signerList" disabled="true">
michael@0 31 <menupopup>
michael@0 32 <menuitem id="token-menu" label="Built-in private key database"/>
michael@0 33 <menuitem label="Bob Lord's iButton"/>
michael@0 34 </menupopup>
michael@0 35 </menulist>
michael@0 36 -->
michael@0 37 <separator/>
michael@0 38
michael@0 39 <groupbox>
michael@0 40 <grid>
michael@0 41 <columns>
michael@0 42 <column/>
michael@0 43 <column/>
michael@0 44 </columns>
michael@0 45 <rows>
michael@0 46 <row>
michael@0 47 <label value="&setPassword.oldPassword.label;"/>
michael@0 48 <textbox id="oldpw" type="password"/>
michael@0 49 <!-- This textbox is inserted as a workaround to the fact that making the 'type'
michael@0 50 & 'disabled' property of the 'oldpw' textbox toggle between ['password' &
michael@0 51 'false'] and ['text' & 'true'] - as would be necessary if the menu has more
michael@0 52 than one tokens, some initialized and some not - does not work properly. So,
michael@0 53 either the textbox 'oldpw' or the textbox 'message' would be displayed,
michael@0 54 depending on the state of the token selected
michael@0 55 -->
michael@0 56 <textbox id="message" disabled="true" />
michael@0 57 </row>
michael@0 58 <row>
michael@0 59 <label value="&setPassword.newPassword.label;"/>
michael@0 60 <textbox id="pw1" type="password"
michael@0 61 oninput="setPasswordStrength(); checkPasswords();"/>
michael@0 62 </row>
michael@0 63 <row>
michael@0 64 <label value="&setPassword.reenterPassword.label;"/>
michael@0 65 <textbox id="pw2" type="password" oninput="checkPasswords();"/>
michael@0 66 </row>
michael@0 67 </rows>
michael@0 68 </grid>
michael@0 69 </groupbox>
michael@0 70
michael@0 71 <groupbox>
michael@0 72 <caption label="&setPassword.meter.label;"/>
michael@0 73 <progressmeter id="pwmeter" mode="determined"
michael@0 74 value="0"/>
michael@0 75 </groupbox>
michael@0 76
michael@0 77 </dialog>

mercurial