Your Name 3 years ago
parent
commit
58fde35e89
1 changed files with 4 additions and 1 deletions
  1. 4 1
      learn/active/src/Auth.php

+ 4 - 1
learn/active/src/Auth.php

@@ -110,9 +110,12 @@ Class Auth
     		$pass = sha1($pass);
     	}
     	$data = Dever::db('active/info_off')->find(array('mobile'=>$mobile));
-    	if ($mobile != $data['mobile']) {
+    	if (!$data) {
     		Dever::alert('手机号还未注册');
     	}
+    	// if ($mobile != $data['mobile']) {
+    	// 	Dever::alert('手机号还未注册');
+    	// }
     	if (!$pass || $pass != $data['pass']) {
     		Dever::alert('密码不能为空或密码不正确');
     	}