瀏覽代碼

Last bugfix for authentication

Matt Coles 9 年之前
父節點
當前提交
55b37480f4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -27,7 +27,7 @@ var auth = function (req, res, next) {
27 27
     return unauthorized(res);
28 28
   };
29 29
 
30
-  if (user.name === 'logs' && user.pass === log_passwd) {
30
+  if (user.name === 'logs' && user.pass === log_passwd.trim()) {
31 31
     return next();
32 32
   } else {
33 33
     return unauthorized(res);