after_create_account_view #360
Replies: 1 comment 3 replies
-
I needed to do a similar thing when working on a screencast series for rebuilding GitHub authentication with Rodauth. It was about displaying a "password sent" page after password reset request, which I implemented by using after_reset_password_request do
# renders a "password_reset_sent" view template with a "Password sent!" page title
return_response view("password_reset_sent", "Password sent!")
end I believe you can do the exact same thing for account creation, by using the The |
Beta Was this translation helpful? Give feedback.
-
Hello, I have a scenario in which I don't want to auto login user after creating an account. Instead of this I want to render a page with clarification about what to do next: "Congrats, we've sent you an email with verification link. Blah Blah Blah". I can use
create_account_redirect
for this and create a route that will render this template. But in this case this route and this template will be public available if you know the URL.I propose implementing
after_create_account_view
that will be rendered if defined, if it is not defined, than current logic with redirect will work. Seems like this can be easily done with an if-case here: https://github.com/jeremyevans/rodauth/blob/master/lib/rodauth/features/create_account.rb#L83.Please tell me what do you think. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions