Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

[bug] Solves User model validation issue with tests [fixes #966] #967

Merged
merged 1 commit into from
Oct 10, 2015

Conversation

mleanos
Copy link
Member

@mleanos mleanos commented Oct 5, 2015

This solves the issue of the User model's pre('validate') method, attempting to validate against a password that was not modified.

Adds the this.isModified('password') check to the condition.

This solves the issue of the User model's pre('validate') method,
attempting to validate against a password that was not modified.

Adds the this.isModified('password') check to the condition.
@mleanos mleanos changed the title Solves User model validation bug [fixes #966] [bug] Solves User model validation issue with tests [fixes #966] Oct 5, 2015
@mleanos
Copy link
Member Author

mleanos commented Oct 6, 2015

Fix for #966

@lirantal lirantal self-assigned this Oct 8, 2015
@lirantal lirantal added this to the 0.4.2 milestone Oct 8, 2015
@lirantal
Copy link
Member

LGTM and we should quickly push this fix or any alteration for it as this is a bug in master now.

@jloveland
Copy link
Contributor

LGTM, we should continue the conversation on #966 to make sure our user saving strategy is well understood.

@mleanos
Copy link
Member Author

mleanos commented Oct 10, 2015

This will definitely handle the bug.

Lets merge it. And then we can continue our discussion about the strategy with the tests.

lirantal added a commit that referenced this pull request Oct 10, 2015
[bug] Solves User model validation issue with tests [fixes #966]
@lirantal lirantal merged commit 19aea2f into meanjs:master Oct 10, 2015
@mleanos mleanos deleted the user-model-validate-bug branch October 10, 2015 19:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants