-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
password reset #366
base: master
Are you sure you want to change the base?
password reset #366
Conversation
issue is here: #367 |
@dmtroyer okay so I started on this and immediately ran into something that I wanted to discuss with you before moving forward. Basically implementing the "Forgot Password" stuff is simple by calling
Assume that we change that url to Now see the following doc: https://github.com/lynndylanhurley/ng-token-auth#authupdatepassword (the function we'd most likely use to handle this). I have 2 problems with it:
... am I missing something or will we have to call a devise endpoint manually with this information? |
@MatthewVita I gotcha... The link in the email shouldn't be to the page where the user will edit their password, but rather to the Granted, I didn't test any of this so take it with a grain of salt :-), but that should get you down the right track. The docs on the |
@dmtroyer thanks for the rundown... things are a tad more clear now. I read over the devise-token-auth code a bit and it seems like the two major drivers of this are:
I'm not sure we'll get the authentication/quasi-authentication we're looking for OOTB as you described it, but playing around/reading more into the docs/code will be the only way to find out. Will update with my findings. |
View of note: |
Trying out the example app (http://ng-token-auth-demo.herokuapp.com/) to see the strategy there. The reset password link in the email is:
after clicking it, it is: ...here's the request when |
17ca8a5
to
0ebf664
Compare
Okay, so I'm on the right track with calling out a
...however, even when providing this url, the
Therefore, I am stuck at the part where the "user is redirect to client..." of the following figure: |
As seen below, using the live sample app, the (right click to view full size gif) As seen in our app, the (right click to view full size gif) ...As such, I'm blocked on this feature. I'm going to submit an issue to the folks at ng-token-auth and will report back. |
@MatthewVita I took a quick peek and added the devise_token_auth mailer views which include the That should help get you on the right track. |
@dmtroyer you're awesome. I missed this because I was focused on reviewing the code over at the ng-token and gem repos and didn't see that our view was overriding the defaults >.<. However, this is still problematic (see the "UPDATE" I added to the issue) because the route gets messed up (lynndylanhurley/ng-token-auth#249). And even with that, the other issue I opened still needs address (lynndylanhurley/ng-token-auth#248) This feature is blocked for now. I'm going to "groom" our MVP backlog and probably start on the dashboard > location area :) |
Start on password reset.