From: Luigi Pinca Date: Sat, 23 Feb 2013 20:53:15 +0000 (+0100) Subject: fixed a sign up issue that occurred with node_redis > 0.7.2 X-Git-Url: https://git.saalbach.dev/?a=commitdiff_plain;h=072bf4bbee104900d78b6d95fbb2fd008097e503;p=binbsis50.git fixed a sign up issue that occurred with node_redis > 0.7.2 --- diff --git a/lib/user.js b/lib/user.js index 0f79218..593a032 100644 --- a/lib/user.js +++ b/lib/user.js @@ -8,16 +8,16 @@ module.exports = function(username, email, salt, hash, joindate) { this.salt = salt; this.password = hash; this.joindate = joindate; - this.totpoints = 0; - this.bestscore = 0; - this.golds = 0; - this.silvers = 0; - this.bronzes = 0; - this.bestguesstime = 30000; - this.worstguesstime = 0; - this.totguesstime = 0; - this.guessed = 0; - this.victories = 0; - this.secondplaces = 0; - this.thirdplaces = 0; + this.totpoints = '0'; + this.bestscore = '0'; + this.golds = '0'; + this.silvers = '0'; + this.bronzes = '0'; + this.bestguesstime = '30000'; + this.worstguesstime = '0'; + this.totguesstime = '0'; + this.guessed = '0'; + this.victories = '0'; + this.secondplaces = '0'; + this.thirdplaces = '0'; };