From 072bf4bbee104900d78b6d95fbb2fd008097e503 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sat, 23 Feb 2013 21:53:15 +0100 Subject: [PATCH] fixed a sign up issue that occurred with node_redis > 0.7.2 --- lib/user.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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'; }; -- 2.54.0