From 255ea6e8160e28d342fc6ff7c84bd3b8fc6e288f Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Tue, 11 Apr 2017 10:04:14 +0300 Subject: [PATCH] Use default quota for users instead of 0 --- api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.js b/api.js index a384353d..cadd865e 100644 --- a/api.js +++ b/api.js @@ -36,7 +36,7 @@ server.post('/user/create', (req, res, next) => { const schema = Joi.object().keys({ username: Joi.string().alphanum().lowercase().min(3).max(30).required(), password: Joi.string().min(3).max(100).required(), - quota: Joi.number().default(0) + quota: Joi.number().default(config.imap.maxStorage * (1024 * 1024)) }); const result = Joi.validate({