-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Redirect url should be urlencoded #2307
Comments
Can you provide a sample repo for us to reproduce your issue? |
@superkhau Here's a sample of it https://github.com/ambrt/loopback-sandbox |
@davidcheung Reassigning to you as this is your FA. |
@ambrt if we also url encode the redirectUrl would this already not be a problem? it is altering the url? |
Hi @davidcheung |
actually i believe that would also mean if the url has parameters it will also be lost, we should fix this |
Closing in favour of #3185. |
Fixed. |
The user verify link is made in such way that it provides redirect path in the middle of whole link.
The problem is that when one would use
redirect=/#/my-angular-path
then the token is treated as hash valu and isn't read by api (to verify) and api throws error.Redirect is added on line 407 and token on 431.
I would just remove:
from line 407 and put it behind
options.verifyHref += '&token=' + user.verificationToken;
on line 431
The text was updated successfully, but these errors were encountered: