Changeset 3088


Ignore:
Timestamp:
Jan 29, 2007, 2:52:18 PM (16 years ago)
Author:
Martin Svensson
Message:

Marked the password field to be required when editing a new user.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/admin/users/edit_user.jsp

    r2978 r3088  
    199199        return false;
    200200      }
     201      <%
     202      if (itemId == 0)
     203      {
     204        %>
     205        else if (Main.trimString(frm.new_password.value) == '')
     206        {
     207          alert('You must enter a password for the user.');
     208          frm.new_password.focus();
     209          return false;
     210        }
     211        <%
     212      }
     213      %>     
    201214      return true;
    202215    }
     
    336349      <tr>
    337350        <td class="prompt">New password</td>
    338         <td colspan="2"><input <%=clazz%> type="password" name="new_password" value="" size="30" maxlength="30"></td>
     351        <td colspan="2"><input <%=itemId == 0 ? requiredClazz : clazz%> type="password" name="new_password" value="" size="30" maxlength="30"></td>
    339352      </tr>
    340353      <tr>
    341354        <td class="prompt">Retype password</td>
    342         <td colspan="2"><input <%=clazz%> type="password" name="retype_password" value="" size="30" maxlength="30"></td>
     355        <td colspan="2"><input <%=itemId == 0 ? requiredClazz : clazz%> type="password" name="retype_password" value="" size="30" maxlength="30"></td>
    343356      </tr>
    344357      <tr valign="top">
Note: See TracChangeset for help on using the changeset viewer.