Skip to content

Commit

Permalink
[fix] No password, don't compare
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreisnz committed Dec 24, 2016
1 parent 772060d commit 45634ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/user/user.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ const UserService = module.exports = {
return UserService.findByUsername(username)
.then(user => {

//No user?
if (!user) {
//No user or user has no password?
if (!user || !user.password) {
return null;
}

Expand Down

0 comments on commit 45634ae

Please sign in to comment.