lib/rodauth/features/recovery_codes.rb in rodauth-1.8.0 vs lib/rodauth/features/recovery_codes.rb in rodauth-1.9.0
- old
+ new
@@ -26,9 +26,10 @@
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}"}
+ 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'
auth_value_method :add_recovery_codes_param, 'add'