Avoid spaces in user names
[TODO] fix identity config
This commit is contained in:
parent
105f8c70c9
commit
3700590cb7
7 changed files with 33 additions and 18 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue