demarches-normaliennes/app/views/password_complexity/show.turbo_stream.haml

7 lines
263 B
Text
Raw Normal View History

= turbo_stream.replace 'complexity-label', partial: 'label'
= turbo_stream.replace 'complexity-bar', partial: 'bar'
- if @score < @min_complexity || @length < @min_length
= turbo_stream.disable 'submit-password'
- else
= turbo_stream.enable 'submit-password'