Using YaStringLength and YaRequired

This commit is contained in:
Paul Schneider 2019-09-04 01:25:36 +01:00
commit 9457ba71d1
62 changed files with 396 additions and 150 deletions

View file

@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Yavsc.Attributes.Validation;
namespace Yavsc.ViewModels.Account
{
@ -10,14 +11,14 @@ namespace Yavsc.ViewModels.Account
/// Local user's name.
/// </summary>
/// <returns></returns>
[Required]
[YaRequired]
public string UserName { get; set; }
/// <summary>
/// Local user's password .
/// </summary>
/// <returns></returns>
[Required]
[YaRequired]
[DataType(DataType.Password)]
public string Password { get; set; }