1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00

Enhance RESTful API user retrieval with quota used bytes. This is the current size of the user's email box in bytes.

This commit is contained in:
Dimitri Huisman
2023-10-11 15:49:52 +00:00
parent d21eb8bea8
commit 0026b8db24
2 changed files with 2 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ user_fields_get = api.model('UserGet', {
'password': fields.String(description="Hash of the user's password; Example='$bcrypt-sha256$v=2,t=2b,r=12$fmsAdJbYAD1gGQIE5nfJq.$zLkQUEs2XZfTpAEpcix/1k5UTNPm0jO'"),
'comment': fields.String(description='A description for the user. This description is shown on the Users page', example='my comment'),
'quota_bytes': fields.Integer(description='The maximum quota for the user’s email box in bytes', example='1000000000'),
'quota_bytes_used': fields.Integer(description='The size of the user’s email box in bytes', example='5000000'),
'global_admin': fields.Boolean(description='Make the user a global administrator'),
'enabled': fields.Boolean(description='Enable the user. When an user is disabled, the user is unable to login to the Admin GUI or webmail or access his email via IMAP/POP3 or send mail'),
'change_pw_next_login': fields.Boolean(description='Force the user to change their password at next login'),