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

why user is undefined? #4

Open
mmdsharifi opened this issue Jul 4, 2016 · 0 comments
Open

why user is undefined? #4

mmdsharifi opened this issue Jul 4, 2016 · 0 comments

Comments

@mmdsharifi
Copy link

mmdsharifi commented Jul 4, 2016

Hi,
I wrote same codes as you commit in this repository but when putting a new user via postman, I face this error :

E:\learnJS\SocialNetwork\example-node-server\models\user.js:39
  if (!user.isModified('password')) return callback();
           ^

TypeError: Cannot read property 'isModified' of undefined

my codes: https://github.com/mmdsharifi/skillsharee
and erro : https://github.com/mmdsharifi/skillsharee/blob/28814dce8b47e8dfe7910336360d6586019a03ac/models/user.js#L22

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

No branches or pull requests

1 participant