修复找回密码表单判断

This commit is contained in:
HFO4 2018-02-04 17:45:53 +08:00
parent 7998513e4e
commit 842f7bf052
2 changed files with 2 additions and 1 deletions

1
application/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
database.php

View file

@ -39,7 +39,7 @@ class Member extends Controller{
}
public function ForgetPwd(){
if(input('?post.regEmail') && input('?post.captchaCode') && !empty(input('post.captchaCode')) && !empty(input('post.regEmail'))){
if(input('?post.regEmail') && !empty(input('post.regEmail'))){
$findAction = User::findPwd(input('post.regEmail'),input('post.captchaCode'));
if ($findAction[0]){
return json(['code' => '200','message' => $findAction[1]]);