Avoid spaces in user names

[TODO] fix identity config
This commit is contained in:
Paul Schneider 2019-07-21 17:35:41 +02:00
commit 3700590cb7
7 changed files with 33 additions and 18 deletions

View file

@ -1,12 +1,14 @@
using System.ComponentModel.DataAnnotations;
using Yavsc.Attributes.Validation;
namespace Yavsc.ViewModels.Account
{
public class ExternalLoginConfirmationViewModel
{
[Required]
[YaStringLength(2,Constants.MaxUserNameLength)]
[YaRegularExpression(Constants.UserNameRegExp)]
public string Name { get; set; }
[Required]