mirror of
https://github.com/bitwarden/server.git
synced 2025-05-17 01:25:39 -05:00
increase encrypted field sizes to 1000
This commit is contained in:
parent
2492491f32
commit
c991d48cbc
@ -20,22 +20,22 @@ namespace Bit.Core.Models.Api
|
|||||||
public string OrganizationId { get; set; }
|
public string OrganizationId { get; set; }
|
||||||
[Required]
|
[Required]
|
||||||
[EncryptedString]
|
[EncryptedString]
|
||||||
[StringLength(300)]
|
[StringLength(1000)]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
[EncryptedString]
|
[EncryptedString]
|
||||||
[StringLength(10000)]
|
[StringLength(10000)]
|
||||||
public string Uri { get; set; }
|
public string Uri { get; set; }
|
||||||
[EncryptedString]
|
[EncryptedString]
|
||||||
[StringLength(300)]
|
[StringLength(1000)]
|
||||||
public string Username { get; set; }
|
public string Username { get; set; }
|
||||||
[EncryptedString]
|
[EncryptedString]
|
||||||
[StringLength(300)]
|
[StringLength(1000)]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
[EncryptedString]
|
[EncryptedString]
|
||||||
[StringLength(10000)]
|
[StringLength(10000)]
|
||||||
public string Notes { get; set; }
|
public string Notes { get; set; }
|
||||||
[EncryptedString]
|
[EncryptedString]
|
||||||
[StringLength(300)]
|
[StringLength(1000)]
|
||||||
public string Totp { get; set; }
|
public string Totp { get; set; }
|
||||||
|
|
||||||
public virtual Cipher ToCipher(Guid userId)
|
public virtual Cipher ToCipher(Guid userId)
|
||||||
|
@ -11,7 +11,7 @@ namespace Bit.Core.Models.Api
|
|||||||
{
|
{
|
||||||
[Required]
|
[Required]
|
||||||
[EncryptedString]
|
[EncryptedString]
|
||||||
[StringLength(300)]
|
[StringLength(1000)]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public IEnumerable<SelectionReadOnlyRequestModel> Groups { get; set; }
|
public IEnumerable<SelectionReadOnlyRequestModel> Groups { get; set; }
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ namespace Bit.Core.Models.Api
|
|||||||
{
|
{
|
||||||
[Required]
|
[Required]
|
||||||
[EncryptedString]
|
[EncryptedString]
|
||||||
[StringLength(300)]
|
[StringLength(1000)]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
public Folder ToFolder(Guid userId)
|
public Folder ToFolder(Guid userId)
|
||||||
|
@ -9,7 +9,7 @@ namespace Bit.Core.Models.Api
|
|||||||
public class GroupRequestModel
|
public class GroupRequestModel
|
||||||
{
|
{
|
||||||
[Required]
|
[Required]
|
||||||
[StringLength(300)]
|
[StringLength(50)]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
[Required]
|
[Required]
|
||||||
public bool? AccessAll { get; set; }
|
public bool? AccessAll { get; set; }
|
||||||
|
@ -16,22 +16,22 @@ namespace Bit.Core.Models.Api
|
|||||||
public bool Favorite { get; set; }
|
public bool Favorite { get; set; }
|
||||||
[Required]
|
[Required]
|
||||||
[EncryptedString]
|
[EncryptedString]
|
||||||
[StringLength(300)]
|
[StringLength(1000)]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
[EncryptedString]
|
[EncryptedString]
|
||||||
[StringLength(10000)]
|
[StringLength(10000)]
|
||||||
public string Uri { get; set; }
|
public string Uri { get; set; }
|
||||||
[EncryptedString]
|
[EncryptedString]
|
||||||
[StringLength(300)]
|
[StringLength(1000)]
|
||||||
public string Username { get; set; }
|
public string Username { get; set; }
|
||||||
[EncryptedString]
|
[EncryptedString]
|
||||||
[StringLength(300)]
|
[StringLength(1000)]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
[EncryptedString]
|
[EncryptedString]
|
||||||
[StringLength(10000)]
|
[StringLength(10000)]
|
||||||
public string Notes { get; set; }
|
public string Notes { get; set; }
|
||||||
[EncryptedString]
|
[EncryptedString]
|
||||||
[StringLength(300)]
|
[StringLength(1000)]
|
||||||
public string Totp { get; set; }
|
public string Totp { get; set; }
|
||||||
|
|
||||||
public CipherDetails ToCipherDetails(Guid userId)
|
public CipherDetails ToCipherDetails(Guid userId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user