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

support options.ignore #1

Merged
merged 1 commit into from
Sep 23, 2014
Merged

support options.ignore #1

merged 1 commit into from
Sep 23, 2014

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Sep 23, 2014

react against with options.match

@coveralls
Copy link

Coverage Status

Coverage increased (+1.1%) when pulling a128e6e on support-ignore into 4b1a5fe on master.

if (!is.function(needLogin)) {
needLogin = function () {};
if (is.string(ignore)) {
var pathMatch = route(ignore);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore only work when without match?

userauth({
  match: '/api',
  ignore: '/api/open'
})

maybe we can support this both?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think so, both support will confuse the user.

dead-horse added a commit that referenced this pull request Sep 23, 2014
@dead-horse dead-horse merged commit fb42c84 into master Sep 23, 2014
@dead-horse dead-horse deleted the support-ignore branch September 23, 2014 03:47
@dead-horse
Copy link
Member

1.1.0

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

Successfully merging this pull request may close these issues.

None yet

3 participants