8000 Redirect url should be urlencoded · Issue #2307 · strongloop/loopback · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Redirect url should be urlencoded #2307
Closed
@ambrt

Description

@ambrt

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:

   '&redirect=' +
      options.redirect;

from line 407 and put it behind
options.verifyHref += '&token=' + user.verificationToken;
on line 431

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0