修改用户登录方式,修复登录次数错误

This commit is contained in:
巴掌 committed 2020-12-15 21:40:30 +08:00
1 parent 1b50a738b9
commit e28aa4c609
7 files changed
+272 -179

No files matched your search

+11
View File
@@ -177,3 +177,14 @@
$subject = $sbj->kaoshi();
return $subject;
}
// 已知密码进行验证
function loginCheck($inputPassword, $serverPassword)
{
// 实例化加密类
$md5 = new \WhiteHat101\Crypt\APR1_MD5;
//验证密码
$check = $md5->check($inputPassword, $serverPassword);
return $check;
}