fix type should be rand not updated
This commit is contained in:
@ -36,8 +36,8 @@ module.exports = function(User) {
|
|||||||
// set salt factor for passwords
|
// set salt factor for passwords
|
||||||
User.settings.saltWorkFactor = 5;
|
User.settings.saltWorkFactor = 5;
|
||||||
// set user.rand to random number
|
// set user.rand to random number
|
||||||
User.definition.rawProperties.updated.default =
|
User.definition.rawProperties.rand.default =
|
||||||
User.definition.properties.updated.default = function() {
|
User.definition.properties.rand.default = function() {
|
||||||
return Math.random();
|
return Math.random();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user