1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

remove culture from request model

This commit is contained in:
Kyle Spearrin 2018-06-23 11:55:45 -04:00
parent 5c13802879
commit 5c17f910fe

View File

@ -9,16 +9,11 @@ namespace Bit.Core.Models.Api
public string Name { get; set; }
[StringLength(50)]
public string MasterPasswordHint { get; set; }
[Required]
[RegularExpression("^[a-z]{2}-[A-Z]{2}$")]
public string Culture { get; set; }
public User ToUser(User existingUser)
{
existingUser.Name = Name;
existingUser.MasterPasswordHint = string.IsNullOrWhiteSpace(MasterPasswordHint) ? null : MasterPasswordHint;
existingUser.Culture = Culture;
return existingUser;
}
}