Browse Source

some change in resend method

mahdi
mahdihty 4 years ago
parent
commit
7f14c6ddf8
  1. 8
      app/Http/Controllers/AuthController.php

8
app/Http/Controllers/AuthController.php

@ -225,11 +225,17 @@ class AuthController extends Controller
'type' => 'required|string'
]);
$this->sendVerification($request->email, $request->type);
$user_db = User::where('email', $request->email)->first();
$user_cache = Cache::get($request->email);
if ($user_db || $user_cache) {
$this->sendVerification($request->email, $request->type);
return response()->json(['message' => 'Link resend successfully'], 200);
}
abort(403);
}
public function createFingerPrint()
{
$attributes = [

Loading…
Cancel
Save