title: hash password before submit form
body: <p>I'm trying to hash the value of the password input field and put the hashed value back in the password field before submission.</p>
  
  <p>I'm currently using:</p>
  
  <pre><code>$('#logForm').submit(function(){
      var passwd = $('#logPassword').val();
      passwd = $.sha256(passwd);
      $('#logPassword').val(passwd);
      return false;
  });
  </code></pre>
  
  <p>I can't see why it's not working as the non hashed password is submitted...</p>