|
|
@@ -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 = "密码和账户名不匹配!"; |
|
|
|