mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
Enforce 2fa policy (#654)
This commit is contained in:
@ -576,7 +576,11 @@ BEGIN
|
||||
[dbo].[PolicyView] P
|
||||
INNER JOIN
|
||||
[dbo].[OrganizationUser] OU ON P.[OrganizationId] = OU.[OrganizationId]
|
||||
INNER JOIN
|
||||
[dbo].[Organization] O ON OU.[OrganizationId] = O.[Id]
|
||||
WHERE
|
||||
OU.[UserId] = @UserId
|
||||
AND OU.[Status] = 2 -- 2 = Confirmed
|
||||
AND O.[Enabled] = 1
|
||||
END
|
||||
GO
|
Reference in New Issue
Block a user