mirror of
https://github.com/bitwarden/server
synced 2025-12-20 10:13:39 +00:00
encrypted string length attr
This commit is contained in:
@@ -22,10 +22,10 @@ namespace Bit.Core.Models.Api
|
||||
public bool Favorite { get; set; }
|
||||
[Required]
|
||||
[EncryptedString]
|
||||
[StringLength(1000)]
|
||||
[EncryptedStringLength(1000)]
|
||||
public string Name { get; set; }
|
||||
[EncryptedString]
|
||||
[StringLength(10000)]
|
||||
[EncryptedStringLength(10000)]
|
||||
public string Notes { get; set; }
|
||||
public IEnumerable<CipherFieldModel> Fields { get; set; }
|
||||
public IEnumerable<CipherPasswordHistoryModel> PasswordHistory { get; set; }
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Bit.Core.Models.Api
|
||||
{
|
||||
[Required]
|
||||
[EncryptedString]
|
||||
[StringLength(1000)]
|
||||
[EncryptedStringLength(1000)]
|
||||
public string Name { get; set; }
|
||||
public IEnumerable<SelectionReadOnlyRequestModel> Groups { get; set; }
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Bit.Core.Models.Api
|
||||
{
|
||||
[Required]
|
||||
[EncryptedString]
|
||||
[StringLength(1000)]
|
||||
[EncryptedStringLength(1000)]
|
||||
public string Name { get; set; }
|
||||
|
||||
public Folder ToFolder(Guid userId)
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Bit.Core.Models.Api
|
||||
[Required]
|
||||
public string Key { get; set; }
|
||||
[EncryptedString]
|
||||
[StringLength(1000)]
|
||||
[EncryptedStringLength(1000)]
|
||||
public string CollectionName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace Bit.Core.Models.Api
|
||||
[Range(0, 99)]
|
||||
public short? AdditionalStorageGb { get; set; }
|
||||
[EncryptedString]
|
||||
[StringLength(1000)]
|
||||
[EncryptedStringLength(1000)]
|
||||
public string CollectionName { get; set; }
|
||||
public string Country { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user