瀏覽代碼

Fixed issue with email-password users.

KrisVos130 8 年之前
父節點
當前提交
e84b9ee9bc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/logic/actions/users.js

+ 1 - 1
backend/logic/actions/users.js

@@ -57,7 +57,7 @@ module.exports = {
 					let sessionId = utils.guid();
 					cache.hset('sessions', sessionId, cache.schemas.session(sessionId, user._id), (err) => {
 						if (err) return next(err);
-						next(sessionId);
+						next(null, sessionId);
 					});
 				});
 			}