1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

use2fa org response

This commit is contained in:
Kyle Spearrin 2018-04-02 17:20:06 -04:00
parent f7991d0da1
commit 367d3f65a6
3 changed files with 34 additions and 0 deletions

View File

@ -11,6 +11,7 @@ namespace Bit.Core.Models.Data
public bool UseDirectory { get; set; } public bool UseDirectory { get; set; }
public bool UseEvents { get; set; } public bool UseEvents { get; set; }
public bool UseTotp { get; set; } public bool UseTotp { get; set; }
public bool Use2fa { get; set; }
public bool SelfHost { get; set; } public bool SelfHost { get; set; }
public bool UsersGetPremium { get; set; } public bool UsersGetPremium { get; set; }
public int Seats { get; set; } public int Seats { get; set; }

View File

@ -9,6 +9,7 @@ SELECT
O.[UseDirectory], O.[UseDirectory],
O.[UseEvents], O.[UseEvents],
O.[UseTotp], O.[UseTotp],
O.[Use2fa],
O.[SelfHost], O.[SelfHost],
O.[UsersGetPremium], O.[UsersGetPremium],
O.[Seats], O.[Seats],

View File

@ -255,3 +255,35 @@ SELECT
FROM FROM
[dbo].[Organization] [dbo].[Organization]
GO GO
IF EXISTS(SELECT * FROM sys.views WHERE [Name] = 'OrganizationUserOrganizationDetailsView')
BEGIN
DROP VIEW [dbo].[OrganizationUserOrganizationDetailsView]
END
GO
CREATE VIEW [dbo].[OrganizationUserOrganizationDetailsView]
AS
SELECT
OU.[UserId],
OU.[OrganizationId],
O.[Name],
O.[Enabled],
O.[UseGroups],
O.[UseDirectory],
O.[UseEvents],
O.[UseTotp],
O.[Use2fa],
O.[SelfHost],
O.[UsersGetPremium],
O.[Seats],
O.[MaxCollections],
O.[MaxStorageGb],
OU.[Key],
OU.[Status],
OU.[Type]
FROM
[dbo].[OrganizationUser] OU
INNER JOIN
[dbo].[Organization] O ON O.[Id] = OU.[OrganizationId]
GO