Browse Source

Last bugfix for authentication

Matt Coles 9 years ago
parent
commit
55b37480f4
1 changed files with 1 additions and 1 deletions
  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);