mirror of
https://github.com/bitwarden/server.git
synced 2026-02-01 06:33:17 +08:00
* Add reset password validator with tests * add organization user rotation methods to repository - move organization user TVP helper to admin console ownership * rename account recovery to reset password * formatting * move registration of RotateUserKeyCommand to Core and make internal * add admin console ValidatorServiceCollectionExtensions
24 lines
858 B
C#
24 lines
858 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Bit.Api.AdminConsole.Models.Request.Organizations;
|
|
using Bit.Api.Tools.Models.Request;
|
|
using Bit.Api.Vault.Models.Request;
|
|
|
|
namespace Bit.Api.Auth.Models.Request.Accounts;
|
|
|
|
public class UpdateKeyRequestModel
|
|
{
|
|
[Required]
|
|
[StringLength(300)]
|
|
public string MasterPasswordHash { get; set; }
|
|
[Required]
|
|
public string Key { get; set; }
|
|
[Required]
|
|
public string PrivateKey { get; set; }
|
|
public IEnumerable<CipherWithIdRequestModel> Ciphers { get; set; }
|
|
public IEnumerable<FolderWithIdRequestModel> Folders { get; set; }
|
|
public IEnumerable<SendWithIdRequestModel> Sends { get; set; }
|
|
public IEnumerable<EmergencyAccessWithIdRequestModel> EmergencyAccessKeys { get; set; }
|
|
public IEnumerable<ResetPasswordWithOrgIdRequestModel> ResetPasswordKeys { get; set; }
|
|
|
|
}
|