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:
commit
e6e2a62e46
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue