Merge pull request #601 from strongloop/doc/user-props

Document user class properties
This commit is contained in:
Ritchie Martori 2014-10-01 13:38:55 -07:00
commit 0e8c019534
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 = {};