Commit 7497bd3d by 杨树贤

邮箱恢复

parent 085d9d37
......@@ -219,13 +219,13 @@ class AuthApiController extends Controller
$subject = config('mail.from.name');
// return $this->setSuccessData($code);
// Mail::to($email)->send(new SendCode($type, $code));
// //错误处理
// if (count(Mail::failures())) {
// return $this->setError('Email code send failed');
// }
Mail::to($email)->send(new SendCode($type, $code));
//错误处理
if (count(Mail::failures())) {
return $this->setError('Email code send failed');
}
return $this->setSuccess('A verification code has been sent. Please enter the code below to continue. '.$code);
return $this->setSuccess('A verification code has been sent. Please enter the code below to continue. ');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment