Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Converting whatever comes to a string before comparing the login.

  • Loading branch information...
commit b04f307c89bd8c7623606380a224ee9280488a15 1 parent 02ad113
DracoBlue authored
5  json-file-user-manager/lib/JsonFileUserManager.js
@@ -32,6 +32,9 @@ JsonFileUserManager.prototype.logging_prefix = 'JsonFileUserManager';
32 32
 
33 33
 JsonFileUserManager.prototype.checkLogin = function(username, password) {
34 34
     var self = this;
  35
+
  36
+    username = (username || "").toString();
  37
+    password = (password || "").toString();
35 38
     
36 39
     this.trace('checkLogin', arguments);
37 40
     return function(cb) {
@@ -48,4 +51,4 @@ JsonFileUserManager.prototype.checkLogin = function(username, password) {
48 51
         
49 52
         cb(false);
50 53
     };
51  
-};
  54
+};

0 notes on commit b04f307

Please sign in to comment.
Something went wrong with that request. Please try again.