From 5c17f910fe8afa73831aee30ff5147317658b812 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 23 Jun 2018 11:55:45 -0400 Subject: [PATCH] remove culture from request model --- .../Models/Api/Request/Accounts/UpdateProfileRequestModel.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Core/Models/Api/Request/Accounts/UpdateProfileRequestModel.cs b/src/Core/Models/Api/Request/Accounts/UpdateProfileRequestModel.cs index 90b97bda2..74466e1e0 100644 --- a/src/Core/Models/Api/Request/Accounts/UpdateProfileRequestModel.cs +++ b/src/Core/Models/Api/Request/Accounts/UpdateProfileRequestModel.cs @@ -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; } }