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:
parent
5c13802879
commit
5c17f910fe
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user