mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +00:00
api/core: skip turnstile verification if user authed with api key
This commit is contained in:
parent
3d7713a942
commit
9cc6fd13fa
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ export const runAPI = (express, app, __dirname) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
app.post('/', (req, res, next) => {
|
app.post('/', (req, res, next) => {
|
||||||
if (!env.sessionEnabled) {
|
if (!env.sessionEnabled || req.rateLimitKey) {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue