2023-02-09 19:06:44 +01:00
|
|
|
= turbo_stream.update 'password_complexity' do
|
|
|
|
= render PasswordComplexityComponent.new(length: @length, min_length: @min_length, score: @score, min_complexity: @min_complexity)
|
|
|
|
|
2022-05-04 12:41:39 +02:00
|
|
|
- if @score < @min_complexity || @length < @min_length
|
|
|
|
= turbo_stream.disable 'submit-password'
|
|
|
|
- else
|
|
|
|
= turbo_stream.enable 'submit-password'
|