Closed Halvanhelv closed 1 year ago
The after_login_failure
hook will fire when email was correct but password wasn't, so you can redirect from it:
after_login_failure do
set_redirect_error_flash "#{login_error_flash}#{invalid_password_messsage}"
redirect "/settings/account"
end
How can I make sure that if the password was entered incorrectly when trying to update the redirect to the correct page was not the standard rodauth (I have a form to change the password is located next to other forms of updating the user's personal data)