Procházet zdrojové kódy

Last bugfix for authentication

Matt Coles před 9 roky
rodič
revize
55b37480f4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);