lib/rodauth/features/reset_password.rb in rodauth-1.5.0 vs lib/rodauth/features/reset_password.rb in rodauth-1.6.0
- old
+ new
@@ -163,10 +163,12 @@
private
attr_reader :reset_password_key_value
def after_login_failure
- @login_form_header = render("reset-password-request")
+ unless only_json?
+ @login_form_header = render("reset-password-request")
+ end
super
end
def after_close_account
remove_reset_password_key