force user has password in database
This commit is contained in:
parent
aa5632c8a0
commit
f66e2a51f9
|
|
@ -213,7 +213,7 @@ server.bind(getRootDN(), async (req, res, next) => {
|
||||||
const matchedUser = getPersonMatchedDN(reqDN);
|
const matchedUser = getPersonMatchedDN(reqDN);
|
||||||
if (matchedUser) {
|
if (matchedUser) {
|
||||||
const record = await getDBRecordForUserId(matchedUser.attributes.uid);
|
const record = await getDBRecordForUserId(matchedUser.attributes.uid);
|
||||||
if (validateUserPassword(record.password || '123456', req.credentials)) {
|
if (record && validateUserPassword(record.password, req.credentials)) {
|
||||||
res.end();
|
res.end();
|
||||||
return next();
|
return next();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue