Kaynağa Gözat

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

临城职教中职
ndbs 2 yıl önce
ebeveyn
işleme
c4aa7eff3d
2 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet