Explorar el Código

Fix bug that creates multiple auth-keys

Matt Coles hace 9 años
padre
commit
5e38fd14fc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);