mirror of
https://github.com/bitwarden/server.git
synced 2025-05-22 20:11:04 -05: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; }
|
public string Name { get; set; }
|
||||||
[StringLength(50)]
|
[StringLength(50)]
|
||||||
public string MasterPasswordHint { get; set; }
|
public string MasterPasswordHint { get; set; }
|
||||||
[Required]
|
|
||||||
[RegularExpression("^[a-z]{2}-[A-Z]{2}$")]
|
|
||||||
public string Culture { get; set; }
|
|
||||||
|
|
||||||
public User ToUser(User existingUser)
|
public User ToUser(User existingUser)
|
||||||
{
|
{
|
||||||
existingUser.Name = Name;
|
existingUser.Name = Name;
|
||||||
existingUser.MasterPasswordHint = string.IsNullOrWhiteSpace(MasterPasswordHint) ? null : MasterPasswordHint;
|
existingUser.MasterPasswordHint = string.IsNullOrWhiteSpace(MasterPasswordHint) ? null : MasterPasswordHint;
|
||||||
existingUser.Culture = Culture;
|
|
||||||
|
|
||||||
return existingUser;
|
return existingUser;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user