Browse Source

取消 登录手机号验证为密码

临城职教中职
ndbs 2 years ago
parent
commit
c4aa7eff3d
2 changed files with 6 additions and 6 deletions
  1. +5
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default.cshtml

+ 5
- 5
Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs View File

@@ -1111,15 +1111,15 @@ namespace Learun.Application.Organization
else
{
string dbPassword = Md5Helper.Encrypt(DESEncrypt.Encrypt(password.ToLower(), userEntity.F_Secretkey).ToLower(), 32).ToLower();
string phone = Md5Helper.Encrypt(userEntity.F_Mobile, 32).ToLower();
//string phone = Md5Helper.Encrypt(userEntity.F_Mobile, 32).ToLower();
if (dbPassword == userEntity.F_Password)
{
userEntity.LoginOk = true;
}
else if (phone == password)
{
userEntity.LoginOk = true;
}
//else if (phone == password)
//{
// userEntity.LoginOk = true;
//}
else
{
userEntity.LoginMsg = "密码和账户名不匹配!";


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default.cshtml View File

@@ -89,7 +89,7 @@
<img class="inp_icon" src="~/Content/images/Login/default_account0.png" alt=""> <input id="lr_username" type="text" placeholder="身份证号">
</div>
<div class="lr-login-input">
<img class="inp_icon" src="~/Content/images/Login/default_psw0.png" alt=""><input id="lr_password" type="password" placeholder="手机号">
<img class="inp_icon" src="~/Content/images/Login/default_psw0.png" alt=""><input id="lr_password" type="password" placeholder="密码">
<span id="psw_change"></span>
</div>
<div class="lr-login-input lr-login-reg">


Loading…
Cancel
Save