add fxa_required option

This commit is contained in:
Danny Coates
2020-07-24 10:06:27 -07:00
parent 9891d1f0ba
commit 17057e725d
7 changed files with 20 additions and 3 deletions

View File

@@ -46,7 +46,8 @@ module.exports = function(ws, req) {
!auth ||
timeLimit <= 0 ||
timeLimit > maxExpireSeconds ||
dlimit > maxDownloads
dlimit > maxDownloads ||
(config.fxa_required && !user)
) {
ws.send(
JSON.stringify({