user.html 944 B

12345678910111213141516171819202122232425
  1. {{extend 'layout.html'}}
  2. <h2>{{=T( request.args(0).replace('_',' ').capitalize() )}}</h2>
  3. <div id="web2py_user_form">
  4. {{
  5. if request.args(0)=='login' and not session.auth_2_factor_user:
  6. if not 'register' in auth.settings.actions_disabled:
  7. form.add_button(T('Register'),URL(args='register', vars={'_next': request.vars._next} if request.vars._next else None),_class='btn')
  8. pass
  9. if not 'request_reset_password' in auth.settings.actions_disabled:
  10. form.add_button(T('Lost Password'),URL(args='request_reset_password'),_class='btn')
  11. pass
  12. pass
  13. =form
  14. }}
  15. </div>
  16. <script language="javascript"><!--
  17. jQuery("#web2py_user_form input:visible:enabled:first").focus();
  18. {{if request.args(0)=='register':}}
  19. web2py_validate_entropy(jQuery('#auth_user_password'),100);
  20. {{elif request.args(0) in ('change_password','reset_password'):}}
  21. web2py_validate_entropy(jQuery('#no_table_new_password'),100);
  22. {{pass}}
  23. //--></script>