Hello all,
I'm playing with Rodauth, trying to get comfortable with it, and I'm wondering if there's some guidance for overriding entire routes.
The usecase: I want to have custom views and fields for creating accounts, and it's starting to feel it'll be easier to override the entire default thing than to try and customize it via methods and hooks. For instance, I would like to run all validations (or at least the ones I explicitly define) and present all the errors to the user, similar to what Rails does. I found a github issue discussing something similar and Jeremy's final suggestion is, indeed, to override the route:
https://github.com/jeremyevans/rodauth/issues/50
So: let's say I create my own form and my own "post" route: can I get access to Rodauth's context to do my thing? For instance, I would like to use "password_meets_requirements?"; can I get it from my own route?
I hope I managed to explain my question clearly (English is not my first language)...
Any help is appreciated! And thanks Jeremy for all the amazing work you do. I already love Roda and Sequel, and now I'm getting to know Rodauth too.
Regards,