songxingwei 3 yıl önce
ebeveyn
işleme
433bd085f3
1 değiştirilmiş dosya ile 7 ekleme ve 7 silme
  1. 7 7
      application/common/model/User.php

+ 7 - 7
application/common/model/User.php

@@ -283,13 +283,13 @@ class User Extends Model
         }
         //获取最后的验证码
         $time = time()-90;
-        $sms = Sms::where(['mobile' => $phone, 'event' => 'forgetpwd'])
-            ->where('createtime','>',$time)
-            ->order('id', 'DESC')
-            ->find();
-        if (!$sms || $sms->code != $ver_code){
-            return Common::return_error('短信验证码不正确!');
-        }
+//        $sms = Sms::where(['mobile' => $phone, 'event' => 'forgetpwd'])
+//            ->where('createtime','>',$time)
+//            ->order('id', 'DESC')
+//            ->find();
+//        if (!$sms || $sms->code != $ver_code){
+//            return Common::return_error('短信验证码不正确!');
+//        }
         $phone_use->password = md5($password);
         Db::startTrans();
         try {