浏览代码

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

临城职教中职
ndbs 2 年前
父节点
当前提交
c4aa7eff3d
共有 2 个文件被更改,包括 6 次插入6 次删除
  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 查看文件

@@ -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 查看文件

@@ -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">


正在加载...
取消
保存