mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 01:22:50 -05:00
Enforce 2fa policy (#654)
This commit is contained in:
@ -10,6 +10,10 @@ 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
|
Reference in New Issue
Block a user