Document user class properties

This commit is contained in:
Ritchie Martori 2014-10-01 10:33:36 -07:00
parent dc58412e18
commit 8c452b9ded
1 changed files with 7 additions and 1 deletions

View File

@ -116,6 +116,12 @@ var options = {
* - ALLOW EVERYONE `findById`
* - ALLOW OWNER `updateAttributes`
*
* @property {String} username Must be unique
* @property {String} password Hidden from remote clients
* @property {String} email Must be valid email
* @property {Boolean} emailVerified Set when a user's email has been verified via `confirm()`
* @property {String} verificationToken Set when `verify()` is called
*
* @class
* @inherits {Model}
*/
@ -169,7 +175,7 @@ User.login = function (credentials, include, fn) {
}else {
include = include.toLowerCase();
}
var query = {};