1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-20 02:54:32 -05:00

adjust cipher length validators

This commit is contained in:
Kyle Spearrin 2016-10-13 18:45:33 -04:00
parent 80e1ba16ad
commit 229f4b0a30
2 changed files with 6 additions and 6 deletions

View File

@ -21,16 +21,16 @@ namespace Bit.Api.Models
[StringLength(300)]
public string Name { get; set; }
[EncryptedString]
[StringLength(5000)]
[StringLength(10000)]
public string Uri { get; set; }
[EncryptedString]
[StringLength(200)]
[StringLength(300)]
public string Username { get; set; }
[EncryptedString]
[StringLength(300)]
public string Password { get; set; }
[EncryptedString]
[StringLength(5000)]
[StringLength(10000)]
public string Notes { get; set; }
public virtual Cipher ToCipher(string userId = null)

View File

@ -16,16 +16,16 @@ namespace Bit.Api.Models
[StringLength(300)]
public string Name { get; set; }
[EncryptedString]
[StringLength(5000)]
[StringLength(10000)]
public string Uri { get; set; }
[EncryptedString]
[StringLength(200)]
[StringLength(300)]
public string Username { get; set; }
[EncryptedString]
[StringLength(300)]
public string Password { get; set; }
[EncryptedString]
[StringLength(5000)]
[StringLength(10000)]
public string Notes { get; set; }
public Cipher ToCipher(string userId = null)