fix: emails fixed
This commit is contained in:
@@ -232,7 +232,7 @@ public function register(Request $request)
|
||||
$token = Str::random(64);
|
||||
// ✅ Check if email can receive a message before creating the user
|
||||
if (isset($data['email'])) {
|
||||
// $code = rand(1000, 9999);
|
||||
$code = rand(1000, 9999);
|
||||
try {
|
||||
if ($method === 'code') {
|
||||
\Mail::to($data['email'])->send(new \App\Mail\VerifyEmailCodeMail($code));
|
||||
|
||||
Reference in New Issue
Block a user