Make sure User.setup calls Model.setup to support shared ctor

This commit is contained in:
Raymond Feng 2013-08-15 16:59:16 -07:00
parent b28c67d955
commit d94bca9134
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) {