1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-26 12:55:17 +01:00

PM-4680 - Set Password Request model tweak - remove nullable enable as it introduced incorrect behavior (requiring the optional mp hint - clients sent it in as "" but mobile was getting rejected b/c it sent in null) (#3414)

This commit is contained in:
Jared Snider 2023-11-07 12:12:27 -05:00 committed by GitHub
parent 778340ff16
commit 146d1972e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,4 @@
#nullable enable using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;
using Bit.Core.Auth.Models.Api.Request.Accounts; using Bit.Core.Auth.Models.Api.Request.Accounts;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Enums; using Bit.Core.Enums;
@ -17,7 +15,7 @@ public class SetPasswordRequestModel : IValidatableObject
public string Key { get; set; } public string Key { get; set; }
[StringLength(50)] [StringLength(50)]
public string MasterPasswordHint { get; set; } public string MasterPasswordHint { get; set; }
public KeysRequestModel? Keys { get; set; } public KeysRequestModel Keys { get; set; }
[Required] [Required]
public KdfType Kdf { get; set; } public KdfType Kdf { get; set; }
[Required] [Required]