Skip to content

Conversation

@beeman
Copy link
Contributor

@beeman beeman commented Dec 3, 2016

Description

Currently the User.resetPassword method only accepts an email address as a parameter.

When you have a LoopBack application that partitions the users in Realms you need to find the user based on it's email address + realm, because it allows for 2 users with the same email address.

This PR fixes the issue by adding support for an optional realm property, that will enhance the filter used in the findOne method.

Related issues

The issue fixed in this PR
#2866

PR for v2.x:
#2980

Checklist

  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide

@slnode
Copy link

slnode commented Dec 3, 2016

Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test."

@slnode
Copy link

slnode commented Dec 3, 2016

Can one of the admins verify this patch?

3 similar comments
@slnode
Copy link

slnode commented Dec 3, 2016

Can one of the admins verify this patch?

@slnode
Copy link

slnode commented Dec 3, 2016

Can one of the admins verify this patch?

@slnode
Copy link

slnode commented Dec 3, 2016

Can one of the admins verify this patch?

@davidcheung
Copy link
Contributor

@slnode okay to test

@beeman beeman force-pushed the bb/password-reset-realms-3.x branch from a011147 to 24e6e12 Compare December 6, 2016 05:40
@beeman
Copy link
Contributor Author

beeman commented Dec 6, 2016

I'll rebase this on master once #2992 lands as it touches the code in the sample places.

@bajtos
Copy link
Member

bajtos commented Jan 5, 2017

@beeman I have landed #2992, could you please go forward with your rebase?

@bajtos bajtos self-assigned this Jan 5, 2017
@beeman beeman force-pushed the bb/password-reset-realms-3.x branch from 24e6e12 to cddfb9c Compare January 5, 2017 14:47
@beeman
Copy link
Contributor Author

beeman commented Jan 5, 2017

@bajtos done :)

@bajtos
Copy link
Member

bajtos commented Jan 5, 2017

@slnode ok to test

@davidcheung
Copy link
Contributor

looks like dependant strong-nginx-controller — Failed! (cddfb9c)
is related to something jenkins reporting the test status to github API changed and sent multiple status to github, and marked build as fail even tho all the test passes. but it does not fail on all builds, not sure why

[sl-ci-run INFO  114.27 ]: Stripping ANSI escape codes from tests.tap...
[sl-ci-run INFO  114.39 ]: Tests passed.
[sl-ci-run INFO  114.39 ]: *************** BUILD FRAMEWORK REPORT CARD ****************
[sl-ci-run INFO  114.39 ]: **  Sanity checks         : pass   [required]
[sl-ci-run INFO  114.39 ]: **  Install dependencies  : pass   [required]
[sl-ci-run INFO  114.39 ]: **  Linter                : pass   [optional]
[sl-ci-run INFO  114.39 ]: **  Generate artifacts    : pass   [required]
[sl-ci-run INFO  114.39 ]: **  Run tests             : pass   [required]
[sl-ci-run INFO  114.39 ]: **  Coverage report       : pass   [optional]
[sl-ci-run INFO  114.39 ]: *************** BUILD FRAMEWORK REPORT CARD ****************
[89d66e82] $ rm -rf $BUILD_FRAMEWORK_ROOT $BUILD_FRAMEWORK_TMPDIR
Set build name.
New build name is '#2672 (origin/master)'
Variable with name 'BUILD_DISPLAY_NAME' already exists, current value: '#2672 (origin/master)', new value: '#2672 (origin/master)'
[PostBuildScript] - Execution post build scripts.
[89d66e82] $ rm -rf $BUILD_FRAMEWORK_ROOT $BUILD_FRAMEWORK_TMPDIR
Archiving artifacts
[Cobertura] Publishing Cobertura coverage report...
Publishing Cobertura coverage results...
Cobertura coverage report found.
[xUnit] [INFO] - Starting to record.
[xUnit] [INFO] - Processing JUnit
[xUnit] [INFO] - [JUnit] - No test report file(s) were found with the pattern '**/*xunit.xml' relative to '/mnt/jenkins/workspace/strong-nginx-controller/89d66e82' for the testing framework 'JUnit'.  Did you enter a pattern relative to the correct directory?  Did you generate the result report(s) for 'JUnit'?
[xUnit] [WARNING] - No test reports found for the metric 'JUnit' with the resolved pattern '**/*xunit.xml'.
[xUnit] [INFO] - Skipping the metric tool processing.
[xUnit] [INFO] - There are errors when processing test results.
[xUnit] [INFO] - Skipping tests recording.
TAP Reports Processing: START
Looking for TAP results report in workspace using pattern: *.tap,*/*.tap
Saving reports...
Processing '/var/lib/jenkins/jobs/strong-nginx-controller/configurations/axis-label/amazon-0.10/builds/2672/tap-master-files/tests.tap'
Parsing TAP test result [/var/lib/jenkins/jobs/strong-nginx-controller/configurations/axis-label/amazon-0.10/builds/2672/tap-master-files/tests.tap].
TAP Reports Processing: FINISH
[Set GitHub commit status (universal)] SUCCESS on repos [GHRepository@3525cebf[description=Nginx controller for Arc,homepage=,name=strong-nginx-controller,license=<null>,fork=false,size=82,milestones={},language=JavaScript,commits={},source=<null>,parent=<null>,url=https://api.github.com/repos/strongloop/strong-nginx-controller,id=29508328]] (sha:c4becda) with context:strong-nginx-controller/label=amazon-0.10
Setting commit status on GitHub for https://github.com/strongloop/strong-nginx-controller/commit/c4becda4f9687225925b3b013eac9231072037c9
ERROR: [GitHub Commit Status Setter] - {"message":"Validation Failed","errors":[{"resource":"Status","code":"custom","message":"This SHA and context has reached the maximum number of statuses."}],"documentation_url":"https://developer.github.com/v3/repos/statuses/#create-a-status"}, setting build result to FAILURE
Build step 'Set build status on GitHub commit [deprecated]' changed build result to FAILURE

@davidcheung
Copy link
Contributor

@slnode test please
seems like some connection issue with cis-jenkins

@Monstrik
Copy link

Monstrik commented Jan 5, 2017

I need this merge please
I switched to 3.x yesterday

@davidcheung
Copy link
Contributor

connector-soap and swagger seems to never pass on cis-jenkins,
nginx seems to be a jenkins issue ( see comment above )
Merging now

@davidcheung davidcheung merged commit 12be94e into strongloop:master Jan 5, 2017
@Monstrik
Copy link

Monstrik commented Jan 5, 2017

When it will be updated in npm repository?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants