diff options
author | Johannes Zellner <johannes@nebulon.de> | 2016-03-01 12:10:30 +0100 |
---|---|---|
committer | Johannes Zellner <johannes@nebulon.de> | 2016-03-01 12:10:30 +0100 |
commit | 394dca7e3a09143ab9063b4c94b0050872c7a2dc (patch) | |
tree | 79b6581d9239cb4fd0690391a25175c5e49b8694 /src | |
parent | 813646f162461f9b7700d3421edc552fed9e28eb (diff) | |
download | Surfer-394dca7e3a09143ab9063b4c94b0050872c7a2dc.tar.gz Surfer-394dca7e3a09143ab9063b4c94b0050872c7a2dc.tar.zst Surfer-394dca7e3a09143ab9063b4c94b0050872c7a2dc.zip |
use test credentials
Diffstat (limited to 'src')
-rw-r--r-- | src/auth.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auth.js b/src/auth.js index c003d2a..6117dc9 100644 --- a/src/auth.js +++ b/src/auth.js | |||
@@ -24,8 +24,8 @@ if (LDAP_URL && LDAP_USERS_BASE_DN) { | |||
24 | exports.ldap = function (req, res, next) { | 24 | exports.ldap = function (req, res, next) { |
25 | console.log('Disable ldap auth, use developer credentials!'); | 25 | console.log('Disable ldap auth, use developer credentials!'); |
26 | 26 | ||
27 | if (req.query.username !== 'username') return res.send(401); | 27 | if (req.query.username !== 'test') return res.send(401); |
28 | if (req.query.password !== 'password') return res.send(401); | 28 | if (req.query.password !== 'test') return res.send(401); |
29 | 29 | ||
30 | next(); | 30 | next(); |
31 | }; | 31 | }; |