refact and login
This commit is contained in:
parent
acc34aeee4
commit
e042e34bf7
78 changed files with 2492 additions and 50576 deletions
|
|
@ -4,18 +4,18 @@ using Yavsc.Attributes.Validation;
|
|||
|
||||
namespace Yavsc.Models.Account {
|
||||
public class ChangePasswordBindingModel {
|
||||
[YaRequired]
|
||||
[Required]
|
||||
[DataType(DataType.Password)]
|
||||
public string OldPassword { get; set; }
|
||||
|
||||
[YaRequired]
|
||||
[Required]
|
||||
[DataType(DataType.Password)]
|
||||
public string NewPassword { get; set; }
|
||||
}
|
||||
public class SetPasswordBindingModel {
|
||||
[YaRequired]
|
||||
[Required]
|
||||
[DataType(DataType.Password)]
|
||||
public string NewPassword { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ namespace Yavsc.ViewModels.Account
|
|||
{
|
||||
public class ExternalLoginConfirmationViewModel
|
||||
{
|
||||
[YaRequired]
|
||||
[Required]
|
||||
[YaStringLength(2,Constants.MaxUserNameLength)]
|
||||
[YaRegularExpression(Constants.UserNameRegExp)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[YaRequired]
|
||||
[Required]
|
||||
[EmailAddress]
|
||||
public string Email { get; set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ namespace Yavsc.ViewModels.Account
|
|||
{
|
||||
public class VerifyCodeViewModel
|
||||
{
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string Provider { get; set; }
|
||||
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string Code { get; set; }
|
||||
|
||||
public string ReturnUrl { get; set; }
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Yavsc.ViewModels.Manage
|
|||
{
|
||||
public class AddPhoneNumberViewModel
|
||||
{
|
||||
[YaRequired]
|
||||
[Required]
|
||||
[Phone]
|
||||
[Display(Name = "Phone number")]
|
||||
public string PhoneNumber { get; set; }
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@ namespace Yavsc.ViewModels.Manage
|
|||
{
|
||||
public class ChangePasswordViewModel
|
||||
{
|
||||
[YaRequired]
|
||||
[Required]
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "Current password")]
|
||||
public string OldPassword { get; set; }
|
||||
|
||||
[YaRequired]
|
||||
[Required]
|
||||
[YaStringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "New password")]
|
||||
|
|
|
|||
|
|
@ -5,32 +5,32 @@ namespace Yavsc.ViewModels.Manage
|
|||
{
|
||||
|
||||
public class DoDirectCreditViewModel {
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string PaymentType { get; set;}
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string PayerName { get; set;}
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string FirstName { get; set;}
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string LastName { get; set;}
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string CreditCardNumber { get; set;}
|
||||
public string CreditCardType { get; set;}
|
||||
public string Cvv2Number { get; set;}
|
||||
public string CardExpiryDate { get; set;}
|
||||
public string IpnNotificationUrl { get; set; }
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string Street1 { get; set; }
|
||||
public string Street2 { get; set; }
|
||||
public string City { get; set; }
|
||||
public string State { get; set; }
|
||||
public string Country { get; set; }
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string PostalCode { get; set; }
|
||||
public string Phone { get; set; }
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string CurrencyCode { get; set; }
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string Amount { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@ namespace Yavsc.ViewModels.Manage
|
|||
{
|
||||
public class SetAddressViewModel
|
||||
{
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string Street1 { get; set; }
|
||||
public string Street2 { get; set; }
|
||||
public string City { get; set; }
|
||||
public string State { get; set; }
|
||||
public string Country { get; set; }
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string PostalCode { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Yavsc.ViewModels.Manage
|
|||
{
|
||||
public class SetPasswordViewModel
|
||||
{
|
||||
[YaRequired]
|
||||
[Required]
|
||||
[YaStringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "New password")]
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ namespace Yavsc.ViewModels.Manage
|
|||
{
|
||||
public class VerifyPhoneNumberViewModel
|
||||
{
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string Code { get; set; }
|
||||
|
||||
[YaRequired]
|
||||
[Required]
|
||||
[Phone]
|
||||
[Display(Name = "Phone number")]
|
||||
public string PhoneNumber { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue