mirror of
https://github.com/bitwarden/server
synced 2026-01-20 09:23:28 +00:00
"user key" schema and api changes
This commit is contained in:
21
src/Sql/dbo/Stored Procedures/User_UpdateKeys.sql
Normal file
21
src/Sql/dbo/Stored Procedures/User_UpdateKeys.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
CREATE PROCEDURE [dbo].[User_UpdateKeys]
|
||||
@Id UNIQUEIDENTIFIER,
|
||||
@SecurityStamp NVARCHAR(50),
|
||||
@Key NVARCHAR(MAX),
|
||||
@PrivateKey VARCHAR(MAX),
|
||||
@RevisionDate DATETIME2(7)
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
||||
UPDATE
|
||||
[dbo].[User]
|
||||
SET
|
||||
[SecurityStamp] = @SecurityStamp,
|
||||
[Key] = @Key,
|
||||
[PrivateKey] = @PrivateKey,
|
||||
[RevisionDate] = @RevisionDate,
|
||||
[AccountRevisionDate] = @RevisionDate
|
||||
WHERE
|
||||
[Id] = @Id
|
||||
END
|
||||
Reference in New Issue
Block a user