mirror of
https://github.com/bitwarden/server.git
synced 2024-11-23 12:25:16 +01:00
48 lines
1.3 KiB
Transact-SQL
48 lines
1.3 KiB
Transact-SQL
IF OBJECT_ID('[dbo].[AuthRequest_Update]') IS NOT NULL
|
|
BEGIN
|
|
DROP PROCEDURE [dbo].[AuthRequest_Update]
|
|
END
|
|
GO
|
|
|
|
CREATE PROCEDURE [dbo].[AuthRequest_Update]
|
|
@Id UNIQUEIDENTIFIER OUTPUT,
|
|
@UserId UNIQUEIDENTIFIER,
|
|
@Type SMALLINT,
|
|
@RequestDeviceIdentifier NVARCHAR(50),
|
|
@RequestDeviceType SMALLINT,
|
|
@RequestIpAddress VARCHAR(50),
|
|
@RequestFingerprint VARCHAR(MAX),
|
|
@ResponseDeviceId UNIQUEIDENTIFIER,
|
|
@AccessCode VARCHAR(25),
|
|
@PublicKey VARCHAR(MAX),
|
|
@Key VARCHAR(MAX),
|
|
@MasterPasswordHash VARCHAR(MAX),
|
|
@CreationDate DATETIME2 (7),
|
|
@ResponseDate DATETIME2 (7),
|
|
@AuthenticationDate DATETIME2 (7)
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON
|
|
|
|
UPDATE
|
|
[dbo].[AuthRequest]
|
|
SET
|
|
[UserId] = @UserId,
|
|
[Type] = @Type,
|
|
[RequestDeviceIdentifier] = @RequestDeviceIdentifier,
|
|
[RequestDeviceType] = @RequestDeviceType,
|
|
[RequestIpAddress] = @RequestIpAddress,
|
|
[RequestFingerprint] = @RequestFingerprint,
|
|
[ResponseDeviceId] = @ResponseDeviceId,
|
|
[AccessCode] = @AccessCode,
|
|
[PublicKey] = @PublicKey,
|
|
[Key] = @Key,
|
|
[MasterPasswordHash] = @MasterPasswordHash,
|
|
[CreationDate] = @CreationDate,
|
|
[ResponseDate] = @ResponseDate,
|
|
[AuthenticationDate] = @AuthenticationDate
|
|
WHERE
|
|
[Id] = @Id
|
|
END
|
|
GO
|