demarches-normaliennes/app/views/password_complexity/show.js.erb

4 lines
272 B
Text
Raw Normal View History

<%= render_to_element('#complexity-label', partial: 'label', outer: true) %>
<%= render_to_element('#complexity-bar', partial: 'bar', outer: true) %>
<%= raw("document.querySelector('#submit-password').disabled = #{@score < @min_complexity || @length < @min_length};") %>