lib/rodauth/features/recovery_codes.rb in rodauth-2.12.0 vs lib/rodauth/features/recovery_codes.rb in rodauth-2.13.0
- old
+ new
@@ -74,11 +74,11 @@
if recovery_code_match?(param(recovery_codes_param))
before_recovery_auth
two_factor_authenticate('recovery_code')
end
- set_response_error_status(invalid_key_error_status)
+ set_response_error_reason_status(:invalid_recovery_code, invalid_key_error_status)
set_field_error(recovery_codes_param, invalid_recovery_code_message)
set_error_flash invalid_recovery_code_error_flash
recovery_auth_view
end
end
@@ -117,10 +117,10 @@
set_error_flash add_recovery_codes_error_flash
else
set_error_flash view_recovery_codes_error_flash
end
- set_response_error_status(invalid_password_error_status)
+ set_response_error_reason_status(:invalid_password, invalid_password_error_status)
set_field_error(password_param, invalid_password_message)
recovery_codes_view
end
end
end