Add user verification to reset password request (#1980)
We only need master password hash because this is currently only used for sso password setting after auto-provisioning. Key Connector is not involved in these accounts
This commit is contained in:
parent
6c7413e38c
commit
58a3662d0f
|
@ -219,7 +219,8 @@ namespace Bit.App.Pages
|
|||
// Request
|
||||
var resetRequest = new OrganizationUserResetPasswordEnrollmentRequest
|
||||
{
|
||||
ResetPasswordKey = encryptedKey.EncryptedString
|
||||
ResetPasswordKey = encryptedKey.EncryptedString,
|
||||
MasterPasswordHash = masterPasswordHash,
|
||||
};
|
||||
var userId = await _stateService.GetActiveUserIdAsync();
|
||||
// Enroll user
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
public class OrganizationUserResetPasswordEnrollmentRequest
|
||||
{
|
||||
public string MasterPasswordHash { get; set; }
|
||||
public string ResetPasswordKey { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue