'The page does not appear when I press the URL in the Rails password reset email
Assumption
We are building a service using Rails and Nuxt.js. We have sent a password reset email from Rails, but when the reset URL is clicked, it does not go to the desired page. How can I configure the email sent to the user so that it goes to the desired page? By the way, the URL also has a token for password reset.
What we want to achieve
I want to go from the password reset email to the password reset page.
Code
<p>Hello <%= @resource.email %>!</p>
<p>
Someone has requested a link to change your password. You can do this through
the link below.
</p>
# I want to go to http://localhost:8080/user/edit/newPassword
# but I go to http://localhost:8080/api/v1/auth/password/edit?config=default&redirect_url&reset_password_token=token
<p>
<%= link_to 'Change my password', "http://localhost:8080/user/edit/password?token=#{@token}"%>
</p>
<p>If you didn't request this, please ignore this email.</p>
<p>
Your password won't change until you access the link above and create a new
one.
</p>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
