Browse Source

Fix bug that creates multiple auth-keys

Matt Coles 9 years ago
parent
commit
5e38fd14fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      presenters/user-controller.js

+ 1 - 1
presenters/user-controller.js

@@ -101,7 +101,7 @@ module.exports = {
101 101
       var user_key = "user:" + user;
102 102
 
103 103
       if (success) {
104
-        redis.hget(user_key, "auth-key", function (auth) {
104
+        redis.hget(user_key, "auth-key", function (err, auth) {
105 105
           var new_auth_key = auth_gen.generate(user);
106 106
           if (auth) {
107 107
             redis.del("auth-key:" + auth);