Skip to content

Commit b5846bd

Browse files
committed
更正字符拼写问题
1 parent ab2e741 commit b5846bd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Vue.Net/VOL.Core/ObjectActionValidator/ValidationContainer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ public static class ValidatorContainer
2525
public static IServiceCollection UseMethodsModelParameters(this IServiceCollection services)
2626
{
2727
//登陆方法校验参数,只验证密码与用户名
28-
ValidatorModel.Login.Add<LoginInfo>(x => new { x.PassWord, x.UserName,x.VerificationCode,x.UUID });
28+
ValidatorModel.Login.Add<LoginInfo>(x => new { x.Password, x.UserName,x.VerificationCode,x.UUID });
2929

3030
//只验证LoginInfo的密码字段必填
31-
ValidatorModel.LoginOnlyPassWord.Add<LoginInfo>(x => new { x.PassWord });
31+
ValidatorModel.LoginOnlyPassWord.Add<LoginInfo>(x => new { x.Password });
3232

3333
return services;
3434
}

Vue.Net/VOL.Entity/DomainModels/System/LoginInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class LoginInfo
1414
[MaxLength(50)]
1515
[Display(Name = "密码")]
1616
[Required(ErrorMessage = "密码不能为空")]
17-
public string PassWord { get; set; }
17+
public string Password { get; set; }
1818
[MaxLength(6)]
1919
[Display(Name = "验证码")]
2020
[Required(ErrorMessage = "验证码不能为空")]

开发版dev/Vue.NetCore/Vue.Net/VOL.Core/ObjectActionValidator/ValidationContainer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ public static class ValidatorContainer
2525
public static IServiceCollection UseMethodsModelParameters(this IServiceCollection services)
2626
{
2727
//登陆方法校验参数,只验证密码与用户名
28-
ValidatorModel.Login.Add<LoginInfo>(x => new { x.PassWord, x.UserName,x.VerificationCode,x.UUID });
28+
ValidatorModel.Login.Add<LoginInfo>(x => new { x.Password, x.UserName,x.VerificationCode,x.UUID });
2929

3030
//只验证LoginInfo的密码字段必填
31-
ValidatorModel.LoginOnlyPassWord.Add<LoginInfo>(x => new { x.PassWord });
31+
ValidatorModel.LoginOnlyPassWord.Add<LoginInfo>(x => new { x.Password });
3232

3333
return services;
3434
}

开发版dev/Vue.NetCore/Vue.Net/VOL.Entity/DomainModels/System/LoginInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class LoginInfo
1414
[MaxLength(50)]
1515
[Display(Name = "密码")]
1616
[Required(ErrorMessage = "密码不能为空")]
17-
public string PassWord { get; set; }
17+
public string Password { get; set; }
1818
[MaxLength(6)]
1919
[Display(Name = "验证码")]
2020
[Required(ErrorMessage = "验证码不能为空")]

0 commit comments

Comments
 (0)