src/org/openbravo/erpCommon/security/Login.html
changeset 28802 25d249e69d3f
parent 28797 99dee8bbab26
child 28804 5970284b4e82
equal deleted inserted replaced
28801:60fde1b7c191 28802:25d249e69d3f
   236     if (result.resetPassword && document.getElementById('loggedUser').value===''){
   236     if (result.resetPassword && document.getElementById('loggedUser').value===''){
   237       document.getElementById('loggedUser').value=result.loggedUser;
   237       document.getElementById('loggedUser').value=result.loggedUser;
   238       document.getElementById('resetPassword').value=result.resetPassword;
   238       document.getElementById('resetPassword').value=result.resetPassword;
   239       document.getElementById('user').value = '';
   239       document.getElementById('user').value = '';
   240       document.getElementById('user').type = 'password';
   240       document.getElementById('user').type = 'password';
   241       document.getElementById('userlabel').innerHTML = 'New Password';
   241       document.getElementById('userlabel').style.display = 'none';
   242       document.getElementById('passwordlabel').innerHTML = 'Confirm Password';
   242       document.getElementById('passwordlabel').style.display = 'none';
       
   243       document.getElementById('newpasswordlabel').style.display = '';
       
   244       document.getElementById('confirmpasswordlabel').style.display = '';
   243     }
   245     }
   244     if (shouldContinue) {
   246     if (shouldContinue) {
   245       try {
   247       try {
   246         if (parent.frameMenu) {
   248         if (parent.frameMenu) {
   247           target = '_parent';
   249           target = '_parent';
   468           <div class="Login_LogForm_Input_Container">
   470           <div class="Login_LogForm_Input_Container">
   469             <dl>
   471             <dl>
   470               <dt>
   472               <dt>
   471                 <label for="user" class="LabelText Login_LabelText" id="userlabel" >User Name</label>
   473                 <label for="user" class="LabelText Login_LabelText" id="userlabel" >User Name</label>
   472               </dt>
   474               </dt>
       
   475               <dt>
       
   476                 <label for="user" class="LabelText Login_LabelText" id="newpasswordlabel" style="display:none;">New Password</label>
       
   477               </dt>
   473               <dd>
   478               <dd>
   474                 <input class="dojoValidateValid Login_TextBox" type="text" maxlength="60" name="user" id="user" />
   479                 <input class="dojoValidateValid Login_TextBox" type="text" maxlength="60" name="user" id="user" />
   475               </dd>
   480               </dd>
   476               <dt>
   481               <dt>
   477                 <label for="password" class="LabelText Login_LabelText" id="passwordlabel" >Password</label>
   482                 <label for="password" class="LabelText Login_LabelText" id="passwordlabel" >Password</label>
       
   483               </dt>
       
   484               <dt>
       
   485                 <label for="password" class="LabelText Login_LabelText" id="confirmpasswordlabel" style="display:none;">Confirm Password</label>
   478               </dt>
   486               </dt>
   479               <dd>
   487               <dd>
   480                 <input class="dojoValidateValid Login_TextBox" type="password" maxlength="40" name="password" id="password" />
   488                 <input class="dojoValidateValid Login_TextBox" type="password" maxlength="40" name="password" id="password" />
   481               </dd>
   489               </dd>
   482             </dl>
   490             </dl>