Browse Source

some change in resend method

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

10
app/Http/Controllers/AuthController.php

@ -225,9 +225,15 @@ 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);
return response()->json(['message' => 'Link resend successfully'], 200);
if ($user_db || $user_cache) {
$this->sendVerification($request->email, $request->type);
return response()->json(['message' => 'Link resend successfully'], 200);
}
abort(403);
}
public function createFingerPrint()

Loading…
Cancel
Save