|
| 1 | += New Features |
| 2 | + |
| 3 | +* Rodauth now automatically supports fixed locals in templates if |
| 4 | + using Roda 3.88+ and Tilt 2.6+. This allows you to use the |
| 5 | + Roda default_fixed_locals: '()' template option without breaking |
| 6 | + Rodauth. If the default fixed locals support breaks your Rodauth |
| 7 | + configuration, such as if you are overriding Rodauth templates |
| 8 | + and modifying the local variables they accept, you can disable |
| 9 | + the use of fixed locals in your Rodauth configuration: |
| 10 | + |
| 11 | + use_template_fixed_locals? false |
| 12 | + |
| 13 | +* Rodauth::ConfigurationError has been added, and issues that |
| 14 | + Rodauth believes are configuration errors now use this |
| 15 | + exception class. |
| 16 | + |
| 17 | += Other Improvements |
| 18 | + |
| 19 | +* The following methods are now public: |
| 20 | + |
| 21 | + * has_password? |
| 22 | + * email_auth_email_recently_sent? |
| 23 | + * unlock_account_email_recently_sent? |
| 24 | + * reset_password_email_recently_sent? |
| 25 | + * verify_account_email_recently_sent? |
| 26 | + |
| 27 | + This makes it supported to call these methods and use the result |
| 28 | + in your own code. |
| 29 | + |
| 30 | +* The verify-account-resend page now works if |
| 31 | + verify_account_resend_explanatory_text calls |
| 32 | + verify_account_email_recently_sent?. Rodauth does not do that |
| 33 | + by default, but if you override |
| 34 | + verify_account_resend_explanatory_text to use different text |
| 35 | + depending on whether the email was recently sent, direct |
| 36 | + navigations to the verify-account-resend page previously failed. |
| 37 | + |
| 38 | +* Rodauth now uses JWT.gem_version to check the JWT gem version, which |
| 39 | + works with JWT 2.10.0. JWT 2.10.1 restored the constants Rodauth |
| 40 | + used to check the version, but this allows the JWT to remove |
| 41 | + such constants again in the future without breaking Rodauth. |
| 42 | + |
| 43 | += Backwards Compatibility |
| 44 | + |
| 45 | +* The change to use Rodauth::ConfigurationError can break code that |
| 46 | + rescued other exception classes, such as ArgumentError, |
| 47 | + RuntimeError, or NotImplementedError. |
0 commit comments