We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26830db commit fe2a903Copy full SHA for fe2a903
user-auth.js
@@ -10,9 +10,9 @@ var check_marray = function(array, string){
10
// check for the presence of an element of `array`
11
// inside `string` and return true
12
var upperString = string.toUpperCase()
13
- for (elem in array) {
14
- if (upperString.indexOf(elem.toUpperCase()) == -1) {
15
- debug("Found " + elem + " in response")
+ for (var idx in array) {
+ if (upperString.indexOf(array[idx].toUpperCase()) != -1) {
+ debug("Found " + array[idx] + " in response")
16
return true
17
}
18
@@ -65,7 +65,6 @@ module.exports = {
65
// we assume that the login was succesfull, this is prone to false-positive
66
resolve({username: username, permissions: "*"});
67
68
-
69
70
});
71
} else {
0 commit comments