Skip to content

Understanding email_auth #223

Answered by janko
gczh asked this question in Q&A
Aug 18, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Rodauth doesn't perform resource modifications in GET requests, to respect HTTP conventions. This applies to email auth, account verification and email change verification, all of which require the form to be submitted. In addition to being correct, it's also more flexible, e.g. Rodauth allows setting password or registering a passkey on account verification, which wouldn't be possible without the additional step.

I recommend simply autosubmitting the form with JavaScript when the page gets loaded, and making the form hidden in the meanwhile. Here is a Stimulus example – https://github.com/janko/rodauth-rails/wiki/Autosubmit-Forms.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gczh
Comment options

Answer selected by gczh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants