projects
/
libervalid
/
libervalid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ajout de tests unitaires et utilitaire de coverage (istanbul), génération de rapports...
[libervalid/libervalid.git]
/
server
/
api
/
user
/
user.model.js
diff --git
a/server/api/user/user.model.js
b/server/api/user/user.model.js
index
69830ee
..
338ea2f
100644
(file)
--- a/
server/api/user/user.model.js
+++ b/
server/api/user/user.model.js
@@
-105,6
+105,8
@@
UserSchema
if (!validatePresenceOf(this.hashedPassword))
next(new Error('Invalid password'));
+ if (!validatePresenceOf(this.email))
+ next(new Error('Invalid email'));
else
next();
});