From 146d1972e4dd8664b30b98842cae258089df16f6 Mon Sep 17 00:00:00 2001 From: Jared Snider <116684653+JaredSnider-Bitwarden@users.noreply.github.com> Date: Tue, 7 Nov 2023 12:12:27 -0500 Subject: [PATCH] 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) --- .../Auth/Models/Request/Accounts/SetPasswordRequestModel.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Api/Auth/Models/Request/Accounts/SetPasswordRequestModel.cs b/src/Api/Auth/Models/Request/Accounts/SetPasswordRequestModel.cs index 6339725cd9..3dd43aa5e3 100644 --- a/src/Api/Auth/Models/Request/Accounts/SetPasswordRequestModel.cs +++ b/src/Api/Auth/Models/Request/Accounts/SetPasswordRequestModel.cs @@ -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.Entities; using Bit.Core.Enums; @@ -17,7 +15,7 @@ public class SetPasswordRequestModel : IValidatableObject public string Key { get; set; } [StringLength(50)] public string MasterPasswordHint { get; set; } - public KeysRequestModel? Keys { get; set; } + public KeysRequestModel Keys { get; set; } [Required] public KdfType Kdf { get; set; } [Required]