lib/rodauth/features/recovery_codes.rb in rodauth-1.22.0 vs lib/rodauth/features/recovery_codes.rb in rodauth-1.23.0

- old
+ new

@@ -21,12 +21,12 @@ error_flash "Unable to add recovery codes.", 'add_recovery_codes' error_flash "Unable to view recovery codes.", 'view_recovery_codes' notice_flash "Additional authentication recovery codes have been added.", 'recovery_codes_added' - redirect(:recovery_auth){"#{prefix}/#{recovery_auth_route}"} - redirect(:add_recovery_codes){"#{prefix}/#{recovery_codes_route}"} + redirect(:recovery_auth){recovery_auth_path} + redirect(:add_recovery_codes){recovery_codes_path} loaded_templates %w'add-recovery-codes recovery-auth recovery-codes password-field' view 'add-recovery-codes', 'Authentication Recovery Codes', 'add_recovery_codes' view 'recovery-auth', 'Enter Authentication Recovery Code', 'recovery_auth' view 'recovery-codes', 'View Authentication Recovery Codes', 'recovery_codes' @@ -144,10 +144,10 @@ def two_factor_authentication_setup? super || (recovery_codes_primary? && !recovery_codes.empty?) end def otp_auth_form_footer - "#{super if defined?(super)}<p><a href=\"#{recovery_auth_route}\">Authenticate using recovery code</a></p>" + "#{super if defined?(super)}<p><a href=\"#{recovery_auth_path}\">Authenticate using recovery code</a></p>" end def otp_lockout_redirect recovery_auth_redirect end