1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-16 09:05:44 -05:00

increase encrypted field sizes to 1000

This commit is contained in:
Kyle Spearrin 2017-07-27 14:08:39 -04:00
parent 2492491f32
commit c991d48cbc
5 changed files with 11 additions and 11 deletions

View File

@ -20,22 +20,22 @@ namespace Bit.Core.Models.Api
public string OrganizationId { get; set; }
[Required]
[EncryptedString]
[StringLength(300)]
[StringLength(1000)]
public string Name { get; set; }
[EncryptedString]
[StringLength(10000)]
public string Uri { get; set; }
[EncryptedString]
[StringLength(300)]
[StringLength(1000)]
public string Username { get; set; }
[EncryptedString]
[StringLength(300)]
[StringLength(1000)]
public string Password { get; set; }
[EncryptedString]
[StringLength(10000)]
public string Notes { get; set; }
[EncryptedString]
[StringLength(300)]
[StringLength(1000)]
public string Totp { get; set; }
public virtual Cipher ToCipher(Guid userId)

View File

@ -11,7 +11,7 @@ namespace Bit.Core.Models.Api
{
[Required]
[EncryptedString]
[StringLength(300)]
[StringLength(1000)]
public string Name { get; set; }
public IEnumerable<SelectionReadOnlyRequestModel> Groups { get; set; }

View File

@ -10,7 +10,7 @@ namespace Bit.Core.Models.Api
{
[Required]
[EncryptedString]
[StringLength(300)]
[StringLength(1000)]
public string Name { get; set; }
public Folder ToFolder(Guid userId)

View File

@ -9,7 +9,7 @@ namespace Bit.Core.Models.Api
public class GroupRequestModel
{
[Required]
[StringLength(300)]
[StringLength(50)]
public string Name { get; set; }
[Required]
public bool? AccessAll { get; set; }

View File

@ -16,22 +16,22 @@ namespace Bit.Core.Models.Api
public bool Favorite { get; set; }
[Required]
[EncryptedString]
[StringLength(300)]
[StringLength(1000)]
public string Name { get; set; }
[EncryptedString]
[StringLength(10000)]
public string Uri { get; set; }
[EncryptedString]
[StringLength(300)]
[StringLength(1000)]
public string Username { get; set; }
[EncryptedString]
[StringLength(300)]
[StringLength(1000)]
public string Password { get; set; }
[EncryptedString]
[StringLength(10000)]
public string Notes { get; set; }
[EncryptedString]
[StringLength(300)]
[StringLength(1000)]
public string Totp { get; set; }
public CipherDetails ToCipherDetails(Guid userId)