Skip to content

Commit

Permalink
When using User#send_reset_password_instructions, redirect_url should…
Browse files Browse the repository at this point in the history
… be set to default url if not present in opts
  • Loading branch information
mengqing committed Aug 17, 2019
1 parent 1254483 commit 2ada9f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/devise_token_auth/concerns/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def send_reset_password_instructions(opts = {})

# fall back to "default" config name
opts[:client_config] ||= 'default'
opts[:redirect_url] ||= DeviseTokenAuth.default_password_reset_url

send_devise_notification(:reset_password_instructions, token, opts)
token
Expand Down

0 comments on commit 2ada9f3

Please sign in to comment.