1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-21 01:21:42 -05:00

Remove hints from responses (#4635)

This commit is contained in:
Matt Gibson
2024-08-23 10:51:21 -07:00
committed by GitHub
parent 8ab19c7b00
commit aa66b5ad11
3 changed files with 1 additions and 5 deletions

View File

@ -8,13 +8,12 @@ public class UpdateProfileRequestModel
[StringLength(50)]
public string Name { get; set; }
[StringLength(50)]
[Obsolete("Changes will be made via the 'password' endpoint going forward.")]
[Obsolete("This field is ignored. Changes are made via the 'password' endpoint.")]
public string MasterPasswordHint { get; set; }
public User ToUser(User existingUser)
{
existingUser.Name = Name;
existingUser.MasterPasswordHint = string.IsNullOrWhiteSpace(MasterPasswordHint) ? null : MasterPasswordHint;
return existingUser;
}
}