From fc18168aa230ca454d0a625d652604a86dbc9424 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 12 Jan 2020 00:49:13 +0800 Subject: [PATCH] update --- app/Http/Controllers/Passport/CommController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Passport/CommController.php b/app/Http/Controllers/Passport/CommController.php index 31aec812..9ffe52ed 100644 --- a/app/Http/Controllers/Passport/CommController.php +++ b/app/Http/Controllers/Passport/CommController.php @@ -7,6 +7,7 @@ use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Http\Exceptions\HttpResponseException; use Illuminate\Support\Facades\Mail; +use App\Utils\Helper; use Cache; class CommController extends Controller @@ -35,7 +36,7 @@ class CommController extends Controller if (Cache::get($cacheKey)) { abort(500, '验证码已发送,请过一会在请求'); } - $code = rand(100000, 999999); + $code = Helper::randomChar(6); $subject = config('v2board.app_name', 'V2Board') . '邮箱验证码'; Mail::send( 'mail.sendEmailVerify',