You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering why we are checking if redirect_url because it's necessary of having DeviseTokenAuth.default_confirm_success_url or params[:redirect_url] set.
In other words, imagine having this method returning nil
So it would be nice to specify if account_confirmation_success AND something like already_confirmed in redirect_header_options so that we know if it's because the link is expired or because the email is already confirmed, giving us the chance to show a better message on frontend. There can also have something like link_expired param to tell if it's because the link is expired.
Version: 1.2.2
in this section
devise_token_auth/app/controllers/devise_token_auth/confirmations_controller.rb
Lines 29 to 33 in eeed642
I was wondering why we are checking
if redirect_url
because it's necessary of havingDeviseTokenAuth.default_confirm_success_url
orparams[:redirect_url]
set.In other words, imagine having this method returning nil
devise_token_auth/app/controllers/devise_token_auth/confirmations_controller.rb
Lines 82 to 87 in eeed642
It means that the sign_up flow would failed in this section
devise_token_auth/app/controllers/devise_token_auth/confirmations_controller.rb
Lines 22 to 25 in eeed642
and throw an exception of type
ArgumentError
sayingbad argument (expected URI object or URI string)
.Maybe I missed something?
The text was updated successfully, but these errors were encountered: