mirror of
https://github.com/bitwarden/server.git
synced 2025-07-07 02:52:50 -05:00
Add support for crypto agent (#1623)
This commit is contained in:
@ -30,7 +30,8 @@
|
||||
@CreationDate DATETIME2(7),
|
||||
@RevisionDate DATETIME2(7),
|
||||
@ApiKey VARCHAR(30),
|
||||
@ForcePasswordReset BIT = 0
|
||||
@ForcePasswordReset BIT = 0,
|
||||
@UsesCryptoAgent BIT = 0
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
@ -68,7 +69,8 @@ BEGIN
|
||||
[CreationDate],
|
||||
[RevisionDate],
|
||||
[ApiKey],
|
||||
[ForcePasswordReset]
|
||||
[ForcePasswordReset],
|
||||
[UsesCryptoAgent]
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
@ -103,6 +105,7 @@ BEGIN
|
||||
@CreationDate,
|
||||
@RevisionDate,
|
||||
@ApiKey,
|
||||
@ForcePasswordReset
|
||||
@ForcePasswordReset,
|
||||
@UsesCryptoAgent
|
||||
)
|
||||
END
|
||||
|
@ -30,7 +30,8 @@
|
||||
@CreationDate DATETIME2(7),
|
||||
@RevisionDate DATETIME2(7),
|
||||
@ApiKey VARCHAR(30),
|
||||
@ForcePasswordReset BIT = 0
|
||||
@ForcePasswordReset BIT = 0,
|
||||
@UsesCryptoAgent BIT = 0
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
@ -68,7 +69,8 @@ BEGIN
|
||||
[CreationDate] = @CreationDate,
|
||||
[RevisionDate] = @RevisionDate,
|
||||
[ApiKey] = @ApiKey,
|
||||
[ForcePasswordReset] = @ForcePasswordReset
|
||||
[ForcePasswordReset] = @ForcePasswordReset,
|
||||
[UsesCryptoAgent] = @UsesCryptoAgent
|
||||
WHERE
|
||||
[Id] = @Id
|
||||
END
|
||||
|
@ -31,6 +31,7 @@
|
||||
[RevisionDate] DATETIME2 (7) NOT NULL,
|
||||
[ApiKey] VARCHAR (30) NOT NULL,
|
||||
[ForcePasswordReset] BIT NOT NULL,
|
||||
[UsesCryptoAgent] BIT NOT NULL,
|
||||
CONSTRAINT [PK_User] PRIMARY KEY CLUSTERED ([Id] ASC)
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user