0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-06-02 03:58:58 +02:00

Allow TOTP generation in organizations (Fixes #50)

This commit is contained in:
Daniel García 2018-07-01 15:49:16 +02:00
parent ea600ab2b8
commit a1ffa4c28d
2 changed files with 7 additions and 7 deletions

View file

@ -97,7 +97,7 @@ impl Cipher {
"Favorite": self.favorite,
"OrganizationId": self.organization_uuid,
"Attachments": attachments_json,
"OrganizationUseTotp": false,
"OrganizationUseTotp": true,
"CollectionIds": self.get_collections(user_uuid, &conn),
"Name": self.name,

View file

@ -66,11 +66,11 @@ impl Organization {
"Seats": 10,
"MaxCollections": 10,
"Use2fa": false,
"Use2fa": true,
"UseDirectory": false,
"UseEvents": false,
"UseGroups": false,
"UseTotp": false,
"UseTotp": true,
"BusinessName": null,
"BusinessAddress1": null,
@ -80,8 +80,8 @@ impl Organization {
"BusinessTaxNumber": null,
"BillingEmail": self.billing_email,
"Plan": "Free",
"PlanType": 0, // Free plan
"Plan": "TeamsAnnually",
"PlanType": 5, // TeamsAnnually plan
"Object": "organization",
})
@ -153,11 +153,11 @@ impl UserOrganization {
"Seats": 10,
"MaxCollections": 10,
"Use2fa": false,
"Use2fa": true,
"UseDirectory": false,
"UseEvents": false,
"UseGroups": false,
"UseTotp": false,
"UseTotp": true,
"MaxStorageGb": 10, // The value doesn't matter, we don't check server-side