Closed pboling closed 2 months ago
verify_account_email_sent_response
calls verify_account_email_sent_redirect
(https://github.com/jeremyevans/rodauth/blob/master/lib/rodauth.rb#L225). verify_account_email_sent_redirect
is called in both the the success and failure cases. I don't think it's misnamed, though if you want a separate redirect method added just for the failure case, that could be added.
I really appreciate being able to understand how you mentally structure this. Cheers!
It appears that it is only used in the scenario where the verify account email request has failed. Is there a clear way I can distinguish which "redirect" settings are used in a failure case, versus the success case?
By way of comparison, the
verify_account_email_recently_sent_redirect
does indicate exactly what use case it accounts for.I want to get my thinking right, because this confused me tremendously. It "felt" obvious what
verify_account_email_sent_redirect
was for, so after trying to understand why it had no effect, as I was expecting it to handle the success case, I ended up going to the source, and couldn't understand what I was seeing at first.