4 lines
332 B
Text
4 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};") %>
|