mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-08 22:38:30 +00:00
api/core: skip turnstile verification if user authed with api key
This commit is contained in:
parent
3d7713a942
commit
9cc6fd13fa
@ -148,7 +148,7 @@ export const runAPI = (express, app, __dirname) => {
|
||||
});
|
||||
|
||||
app.post('/', (req, res, next) => {
|
||||
if (!env.sessionEnabled) {
|
||||
if (!env.sessionEnabled || req.rateLimitKey) {
|
||||
return next();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user