mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update
This commit is contained in:
parent
abdb6f80af
commit
fc18168aa2
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user