ソースを参照

Bugfix in authentication

Matt Coles 9 年 前
コミット
3da23852b9
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      index.js

+ 2 - 2
index.js

@@ -21,13 +21,13 @@ var auth = function (req, res, next) {
21 21
     return res.send(401);
22 22
   };
23 23
 
24
-  var user = basicAuth(req);
24
+  var user = basic_auth(req);
25 25
 
26 26
   if (!user || !user.name || !user.pass) {
27 27
     return unauthorized(res);
28 28
   };
29 29
 
30
-  if (user.name === 'admin' && user.pass === log_passwd) {
30
+  if (user.name === 'logs' && user.pass === log_passwd) {
31 31
     return next();
32 32
   } else {
33 33
     return unauthorized(res);