is: /^[A-Za-z0-9\.\_]+$/i
},
set: function(name) {
+ name = name.toLowerCase();
this.setDataValue('name', name);
this.setDataValue('defaultuser', name);
}
set: function(password) {
this.salt = this.makeSalt();
this.setDataValue('password', this.encryptPassword(password));
- this.setDataValue('md5secret', this.md5Password(this.name +
- ':asterisk:' + password));
+ this.setDataValue('md5secret', this.md5Password(this.name + ':asterisk:' + password));
}
},
provider: {
},
phoneBarExpires: {
type: DataTypes.INTEGER(5),
- defaultValue: 3600
+ defaultValue: 120
},
phoneBarNameServer: {
type: DataTypes.STRING,