templates/bundles/FOSUserBundle/Security/login.html.twig line 6

Open in your IDE?
  1. {% extends '@FOSUser/layout.html.twig' %}
  2. {% block fos_user_content %}
  3. <div class="card tw-rounded-xl tw-overflow-hidden">
  4. <div class="card-body">
  5. {{ include('@FOSUser/Security/login_content.html.twig') }}
  6. </div>
  7. </div>
  8. {% endblock fos_user_content %}
  9. {% block javascripts %}
  10. <script>
  11. {{ inlineJsWrapperBegin() }}
  12. jQuery('#showpassword').click(function () {
  13. if (jQuery(this).hasClass('fa-eye')) {
  14. jQuery(this).removeClass('fa-eye');
  15. jQuery(this).addClass('fa-eye-slash');
  16. jQuery('#password').attr('type', 'password');
  17. jQuery('#set_own_password_password_first').attr('type', 'password')
  18. } else {
  19. jQuery(this).removeClass('fa-eye-slash');
  20. jQuery(this).addClass('fa-eye');
  21. jQuery('#password').attr('type', 'text');
  22. jQuery('#set_own_password_password_first').attr('type', 'text')
  23. }
  24. });
  25. {{ inlineJsWrapperEnd() }}
  26. </script>
  27. {% endblock %}