mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 16:12:49 -05:00
37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System;
|
|
using Bit.Core.Entities;
|
|
using Bit.Core.Enums;
|
|
|
|
namespace Bit.Core.Models.Data
|
|
{
|
|
public class OrganizationUserResetPasswordDetails
|
|
{
|
|
public OrganizationUserResetPasswordDetails(OrganizationUser orgUser, User user, Organization org)
|
|
{
|
|
if (orgUser == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(orgUser));
|
|
}
|
|
|
|
if (user == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(user));
|
|
}
|
|
|
|
if (org == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(org));
|
|
}
|
|
|
|
Kdf = user.Kdf;
|
|
KdfIterations = user.KdfIterations;
|
|
ResetPasswordKey = orgUser.ResetPasswordKey;
|
|
EncryptedPrivateKey = org.PrivateKey;
|
|
}
|
|
public KdfType Kdf { get; set; }
|
|
public int KdfIterations { get; set; }
|
|
public string ResetPasswordKey { get; set; }
|
|
public string EncryptedPrivateKey { get; set; }
|
|
}
|
|
}
|