mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 06:30:53 +03:00
Implemented FxA
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
const config = require('../config');
|
||||
const storage = require('../storage');
|
||||
|
||||
module.exports = function(req, res) {
|
||||
const dlimit = req.body.dlimit;
|
||||
if (!dlimit || dlimit > 20) {
|
||||
// TODO: fxa auth
|
||||
if (!dlimit || dlimit > config.max_downloads) {
|
||||
return res.sendStatus(400);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user