mirror of
https://github.com/bitwarden/server
synced 2025-12-23 11:43:23 +00:00
added string length checks on all request objects that store the given data.
This commit is contained in:
@@ -6,10 +6,13 @@ namespace Bit.Api.Models
|
||||
{
|
||||
[Required]
|
||||
[EmailAddress]
|
||||
[StringLength(50)]
|
||||
public string NewEmail { get; set; }
|
||||
[Required]
|
||||
[StringLength(300)]
|
||||
public string MasterPasswordHash { get; set; }
|
||||
[Required]
|
||||
[StringLength(300)]
|
||||
public string NewMasterPasswordHash { get; set; }
|
||||
[Required]
|
||||
public string Token { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user