541469799@qq.com 1 год назад
Родитель
Сommit
44d9b8bd88
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/index/controller/Captcha.php

+ 2 - 2
app/index/controller/Captcha.php

@@ -64,12 +64,12 @@ class Captcha extends Controller
         $data = $this->postForm();
         $email = $data['mobile'] ?? '';
         if (empty($email)) {
-            return $this->renderError('Failed to send code. Please try again later');
+            return $this->renderError('Invalid email address.');
         }
 
         $smtp = new UMailer(config('smtp.host'), config('smtp.port'), true,
             config('smtp.username'), config('smtp.password'));
-        $smtp->debug = false;                     //是否显示发送的调试信息
+        $smtp->debug = true;                     //是否显示发送的调试信息
         $flag = $smtp->sendmail($email, config('smtp.username'));
         if ($flag) {
             return $this->renderSuccess('Sent Successful!Please check your new mails.');