Redirect to password reset in case of existing user

This commit is contained in:
Linus Gasser 2025-10-08 15:59:56 +02:00
parent b08e405784
commit d6c76ceff7
2 changed files with 12 additions and 1 deletions

View file

@ -10,7 +10,7 @@
.form-group
= f.label :email, "Email"
%abbr{title: 'This field is required'} *
= f.email_field :email, autofocus: true, required: true, class: 'form-control', placeholder: 'Email'
= f.email_field :email, autofocus: true, required: true, class: 'form-control', placeholder: 'Email', value: params.dig(:user, :email)
%p.text-right
%button{type: 'submit', class: 'btn btn-success'}
Send me reset password instructions