1
0
mirror of https://github.com/bitwarden/server synced 2025-12-19 17:53:44 +00:00

encrypted string length attr

This commit is contained in:
Kyle Spearrin
2018-08-02 08:57:32 -04:00
parent 8393af9afc
commit 14956f6383
11 changed files with 56 additions and 36 deletions

View File

@@ -1,6 +1,7 @@
using System.ComponentModel.DataAnnotations;
using Bit.Core.Enums;
using Bit.Core.Models.Data;
using Bit.Core.Utilities;
namespace Bit.Core.Models.Api
{
@@ -16,9 +17,9 @@ namespace Bit.Core.Models.Api
}
public FieldType Type { get; set; }
[StringLength(1000)]
[EncryptedStringLength(1000)]
public string Name { get; set; }
[StringLength(1000)]
[EncryptedStringLength(1000)]
public string Value { get; set; }
}
}