教师登录与修改密码完成
This commit is contained in:
1 parent
a67bb00b3b
commit
3c65ba4c98
13 files changed
+485
-48
No files matched your search
@@ -48,7 +48,7 @@ class Student
|
||||
public function yanzheng()
|
||||
{
|
||||
// 获取表单数据
|
||||
$data = request()->only(['username','password','shenfenzhenghao','online']);
|
||||
$data = request()->only(['username','password','online']);
|
||||
|
||||
// 验证表单数据
|
||||
try {
|
||||
@@ -117,7 +117,7 @@ class Student
|
||||
|
||||
//验证密码
|
||||
$check = $md5->check($password,$userinfo->password);
|
||||
|
||||
|
||||
if($check)
|
||||
{
|
||||
session('student', null);
|
||||
@@ -136,7 +136,7 @@ class Student
|
||||
session(null);
|
||||
$data=['msg'=>'学生身份证号或密码错误','status'=>0];
|
||||
}
|
||||
return $data;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user