mirror of
https://github.com/bitwarden/server
synced 2026-01-15 15:03:34 +00:00
* V2 prep, rename existing SSO JIT MP command to V1 * set initial master password for account registraton V2 * later removel docs * TDE MP onboarding split * revert separate TDE onboarding controller api * Server side hash of the user master password hash * use `ValidationResult` instead for validation errors * unit test coverage * integration test coverage * update sql migration script date * revert validate password change * better requests validation * explicit error message when org sso identifier invalid * more unit test coverage * renamed onboarding to set, hash naming clarifications * update db sql script, formatting * use raw json as request instead of request models for integration test * v1 integration test coverage * change of name
32 lines
818 B
Transact-SQL
32 lines
818 B
Transact-SQL
CREATE OR ALTER PROCEDURE [dbo].[User_UpdateMasterPassword]
|
|
@Id UNIQUEIDENTIFIER,
|
|
@MasterPassword NVARCHAR(300),
|
|
@MasterPasswordHint NVARCHAR(50) = NULL,
|
|
@Key VARCHAR(MAX),
|
|
@Kdf TINYINT,
|
|
@KdfIterations INT,
|
|
@KdfMemory INT = NULL,
|
|
@KdfParallelism INT = NULL,
|
|
@RevisionDate DATETIME2(7),
|
|
@AccountRevisionDate DATETIME2(7)
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON
|
|
|
|
UPDATE
|
|
[dbo].[User]
|
|
SET
|
|
[MasterPassword] = @MasterPassword,
|
|
[MasterPasswordHint] = @MasterPasswordHint,
|
|
[Key] = @Key,
|
|
[Kdf] = @Kdf,
|
|
[KdfIterations] = @KdfIterations,
|
|
[KdfMemory] = @KdfMemory,
|
|
[KdfParallelism] = @KdfParallelism,
|
|
[RevisionDate] = @RevisionDate,
|
|
[AccountRevisionDate] = @AccountRevisionDate
|
|
WHERE
|
|
[Id] = @Id
|
|
END
|
|
GO
|