refact
This commit is contained in:
parent
1aafb7cc7d
commit
e24208e77b
32 changed files with 96 additions and 94 deletions
|
|
@ -8,8 +8,8 @@ namespace Yavsc.ViewModels.Account
|
|||
public class RegisterModel
|
||||
{
|
||||
|
||||
[StringLength(Constants.MaxUserNameLength)]
|
||||
[RegularExpression(Constants.UserNameRegExp)]
|
||||
[StringLength(YavscConstants.MaxUserNameLength)]
|
||||
[RegularExpression(YavscConstants.UserNameRegExp)]
|
||||
[DataType(DataType.Text)]
|
||||
[Display(Name = "UserName", Description = "User name")]
|
||||
public string UserName { get; set; }
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using Yavsc.Models.Auth;
|
|||
namespace Yavsc
|
||||
{
|
||||
|
||||
public static class Constants
|
||||
public static class YavscConstants
|
||||
{
|
||||
public static readonly Scope[] SiteScopes = {
|
||||
new Scope { Id = "profile", Description = "Your profile informations" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue