mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
fix(api): 🐛 Properly disable challenges when config option is set
This commit is contained in:
parent
a0d56c044b
commit
d33a61e713
|
|
@ -284,7 +284,7 @@ export const auth = (
|
|||
}
|
||||
}
|
||||
|
||||
if (challengeData) {
|
||||
if (challengeData && config.validation.challenges.enabled) {
|
||||
const challengeCheck = await checkRouteNeedsChallenge(
|
||||
challengeData,
|
||||
context,
|
||||
|
|
|
|||
Loading…
Reference in a new issue