Преглед на файлове

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);