title: How to properly implement "Confirm Password" in ASP.NET MVC 3?
body: <p>There's already an <a href="http://davidhayden.com/blog/dave/archive/2011/01/01/CompareAttributeASPNETMVC3.aspx">answered question</a> about the same subject but as it's from '09 I consider it outdated.</p>
  
  <p>How to properly implement "Confirm Password" in ASP.NET MVC 3?</p>
  
  <p>I'm seeing a lot of options on the Web, most of them using the <code>CompareAttribute</code> in the model <a href="http://davidhayden.com/blog/dave/archive/2011/01/01/CompareAttributeASPNETMVC3.aspx">like this one</a></p>
  
  <p>The problem is that definitely <code>ConfirmPassword</code> shound't be in the model as it shouldn't be persisted.</p>
  
  <p>As the whole unobstrusive client validation from MVC 3 rely on the model and I don't feel like putting a ConfirmPassword property on my model, what should I do?</p>
  
  <p>Should I inject a custom client validation function? If so.. How?</p>