Merge pull request #5 from strongloop/fix-customer-user-model

Make sure User.setup calls Model.setup to support shared ctor
This commit is contained in:
Ritchie Martori 2013-08-16 11:51:12 -07:00
commit e6e2a62e46
1 changed files with 2 additions and 0 deletions

View File

@ -251,6 +251,8 @@ User.confirm = function (uid, token, redirect, fn) {
*/
User.setup = function () {
// We need to call the base class's setup method
Model.setup.call(this);
var UserModel = this;
UserModel.setter.password = function (plain) {