wip
This commit is contained in:
@@ -38,6 +38,9 @@ class ResetPasswordController extends Controller
|
||||
$user = User::where('username', $request->username)->first();
|
||||
|
||||
// sendSMSVerification($user->phone);
|
||||
$phone_code = rand(10000, 99999);
|
||||
$verification = Verification::where(['username' => $user->phone])->first();
|
||||
$verification ? $verification->update(['code' => $phone_code]) : Verification::create(['username' => $user->phone, 'code' => $phone_code]);
|
||||
|
||||
return response()->json([
|
||||
'step' => 1,
|
||||
|
||||
Reference in New Issue
Block a user