demarches-normaliennes/app/views/shared/password/test_strength.js.erb
2019-08-01 17:12:14 +02:00

3 lines
332 B
Text

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