mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-07 04:30:59 +01:00
Merge pull request #139 from macsj200/patch-2
Genericize invalid username or password message
This commit is contained in:
@@ -22,12 +22,12 @@ module.exports = function() {
|
||||
}
|
||||
if (!user) {
|
||||
return done(null, false, {
|
||||
message: 'Unknown user'
|
||||
message: 'Unknown user or invalid password'
|
||||
});
|
||||
}
|
||||
if (!user.authenticate(password)) {
|
||||
return done(null, false, {
|
||||
message: 'Invalid password'
|
||||
message: 'Unknown user or invalid password'
|
||||
});
|
||||
}
|
||||
|
||||
@@ -35,4 +35,4 @@ module.exports = function() {
|
||||
});
|
||||
}
|
||||
));
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user