mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 16:42:50 -05:00
added string length checks on all request objects that store the given data.
This commit is contained in:
@ -6,7 +6,9 @@ namespace Bit.Api.Models
|
||||
public class UpdateProfileRequestModel
|
||||
{
|
||||
[Required]
|
||||
[StringLength(50)]
|
||||
public string Name { get; set; }
|
||||
[StringLength(50)]
|
||||
public string MasterPasswordHint { get; set; }
|
||||
[Required]
|
||||
[RegularExpression("^[a-z]{2}-[A-Z]{2}$")]
|
||||
|
Reference in New Issue
Block a user