mirror of
https://github.com/bitwarden/server.git
synced 2025-07-07 02:52:50 -05:00
[PS-165] Missing copy verification code (#2022)
* Made changes to organization details endpoint * Fixed formatting * Added script to utils directory
This commit is contained in:
@ -390,5 +390,6 @@
|
||||
<Build Include="dbo\Stored Procedures\OrganizationConnection_ReadByOrganizationIdType.sql" />
|
||||
<Build Include="dbo\Views\OrganizationApiKeyView.sql" />
|
||||
<Build Include="dbo\Views\OrganizationConnectionView.sql" />
|
||||
<Build Include="dbo\Stored Procedures\CipherOrganizationDetails_ReadByOrganizationId.sql" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
@ -0,0 +1,19 @@
|
||||
CREATE PROCEDURE [dbo].[CipherOrganizationDetails_ReadByOrganizationId]
|
||||
@OrganizationId UNIQUEIDENTIFIER
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
||||
SELECT
|
||||
C.*,
|
||||
CASE
|
||||
WHEN O.[UseTotp] = 1 THEN 1
|
||||
ELSE 0
|
||||
END [OrganizationUseTotp]
|
||||
FROM
|
||||
[dbo].[CipherView] C
|
||||
LEFT JOIN
|
||||
[dbo].[OrganizationView] O ON O.[Id] = C.[OrganizationId]
|
||||
WHERE
|
||||
C.[OrganizationId] = @OrganizationId
|
||||
END
|
Reference in New Issue
Block a user