428ca8755f
This component will replace the previous `password_field` component.
3 lines
272 B
Text
3 lines
272 B
Text
<%= 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};") %>
|