Skip to content
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

windows redirect problems #28

Closed
micosty opened this issue Aug 24, 2017 · 1 comment · Fixed by #29
Closed

windows redirect problems #28

micosty opened this issue Aug 24, 2017 · 1 comment · Fixed by #29
Assignees
Labels

Comments

@micosty
Copy link

micosty commented Aug 24, 2017

if (options.rootPath !== '/') {
    options.loginPath = path.join(options.rootPath, options.loginPath);
    options.logoutPath = path.join(options.rootPath, options.logoutPath);
    options.loginCallbackPath = path.join(options.rootPath, options.loginCallbackPath);
  }

https://github.com/koajs/userauth/blob/master/index.js#L65-L69

path.join在windows下是反斜杠,登录跳转地址有误,出现重定向循环

@fengmk2 fengmk2 self-assigned this Aug 25, 2017
@fengmk2 fengmk2 added the bug label Aug 25, 2017
@fengmk2
Copy link
Member

fengmk2 commented Aug 25, 2017

Same bug as node-modules/userauth#11, I will fix this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants