Add methods to get challengeMap
Update boot/challenge.js to use new methods Update boot/user.js to use new methods
This commit is contained in:
@@ -84,7 +84,8 @@ export default function certificate(app) {
|
||||
|
||||
function verifyCert(certType, req, res, next) {
|
||||
const { user } = req;
|
||||
return certTypeIds[certType]
|
||||
return user.getChallengeMap()
|
||||
.flatMap(() => certTypeIds[certType])
|
||||
.flatMap(challenge => {
|
||||
const {
|
||||
id,
|
||||
|
||||
Reference in New Issue
Block a user