Make sure User.setup calls Model.setup to support shared ctor
This commit is contained in:
parent
b28c67d955
commit
d94bca9134
|
@ -251,6 +251,8 @@ User.confirm = function (uid, token, redirect, fn) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
User.setup = function () {
|
User.setup = function () {
|
||||||
|
// We need to call the base class's setup method
|
||||||
|
Model.setup.call(this);
|
||||||
var UserModel = this;
|
var UserModel = this;
|
||||||
|
|
||||||
UserModel.setter.password = function (plain) {
|
UserModel.setter.password = function (plain) {
|
||||||
|
|
Loading…
Reference in New Issue