feat: add back support for req.body._csrf

used in login.tpl etc for noscript login
isekai-main
Barış Soner Uşaklı 2 years ago
parent 3256fb30e7
commit 67f44a3212

@ -12,7 +12,9 @@ const {
return req.headers['x-csrf-token'];
} else if (req.body && req.body.csrf_token) {
return req.body.csrf_token;
} else if (req.query) {
} else if (req.body && req.body._csrf) {
return req.body._csrf;
} else if (req.query && req.query._csrf) {
return req.query._csrf;
}
},

Loading…
Cancel
Save