resetpw.jade 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. div.content
  2. div.container1
  3. h1 Password Reset
  4. - url = "/resetpw";
  5. - if ( typeof(verify) != 'undefined' && verify ) { url += "/" + resetPassCode; }
  6. form#resetpw( action = '#{ url }', method = 'POST' )
  7. div.zarea
  8. span.text
  9. - if ( typeof(verify) != 'undefined' && verify )
  10. P To verify and reset your password, type the full email address and your new password twice, then click submit.
  11. - else
  12. P To reset your password, enter your email address click "Reset". An email will be sent to you with the new password.
  13. div( class = 'row')
  14. div( class = 'label')
  15. label( for = 'email' ) Email
  16. div( class = 'field')
  17. input( type = 'text', name = 'email', size='15', value = session.email )
  18. - if ( typeof(verify) != 'undefined' && verify )
  19. div( class = 'row')
  20. div( class = 'label')
  21. label( for = 'pass1' ) New Password
  22. div( class = 'field')
  23. input( type = 'password', name = 'pass1', size='15' )
  24. div( class = 'row')
  25. div( class = 'label')
  26. label( for = 'pass2' ) Repeat Password
  27. div( class = 'field')
  28. input( type = 'password', name = 'pass2', size='15' )
  29. div( class = 'row')
  30. div( class = 'label')
  31.  
  32. div( class = 'field', style = 'min-width: 200px' )
  33. button Reset
  34. script
  35. $( document ).ready( function() {
  36. if( $( 'input[name=email]' ).val() ) {
  37. $( 'input[name=password]' ).focus();
  38. } else {
  39. $( 'input[name=email]' ).focus();
  40. }
  41. });