         $('#password-error').text 'Password must be at least 8 characters.'
         valid = false
 
+      # admin updating a user's password
+      if @session.bareJid() != @selected.jid
+        if password1 != password2
+          $('#password-error').text 'Passwords must match.'
+          valid = false
+
     else # new user
       if node == ''
         $('#user-name-error').text 'User name is required.'

    valid

  saveSystem: ->
    return unless this.validateSystem()
    user =
      jid: $('#jid').val()
      username: $('#user-name').val()

      """).prependTo '#jid-fields'

      $('#name').focus()
      if @session.bareJid() != user.jid
        $('#password1-label').text 'Password'
        $('#password2-label').text 'Password Again'
      $('#jid').val user.jid
      $('#name').val user.name
      $('#user-name').val user.jid.split('@')[0]
