Fix OTP Client Portal to 4444
This commit is contained in:
@@ -35,13 +35,13 @@ class AuthController extends Controller
|
|||||||
if (filter_var($request->phoneOrEmail, FILTER_VALIDATE_EMAIL)) {
|
if (filter_var($request->phoneOrEmail, FILTER_VALIDATE_EMAIL)) {
|
||||||
User::query()->find($user->id)->update([
|
User::query()->find($user->id)->update([
|
||||||
'email' => $request->phoneOrEmail,
|
'email' => $request->phoneOrEmail,
|
||||||
'otp' => rand(1000, 9999),
|
'otp' => 4444, //rand(1000, 9999),
|
||||||
'otp_created_at' => now()
|
'otp_created_at' => now()
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
User::query()->find($user->id)->update([
|
User::query()->find($user->id)->update([
|
||||||
'phone' => $request->phoneOrEmail,
|
'phone' => $request->phoneOrEmail,
|
||||||
'otp' => rand(1000, 9999),
|
'otp' => 4444,//rand(1000, 9999),
|
||||||
'otp_created_at' => now()
|
'otp_created_at' => now()
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,10 +42,8 @@ class CorporateService
|
|||||||
|
|
||||||
$this->validatePlanRow($plan_data);
|
$this->validatePlanRow($plan_data);
|
||||||
|
|
||||||
$plan = Plan::updateOrCreate([
|
$plan = $corporate->plans()->updateOrCreate([
|
||||||
'service_code' => $plan_data['service_code'],
|
'service_code' => $plan_data['service_code'],
|
||||||
'corporate_id' => $corporate->id,
|
|
||||||
'code' => $plan_data['code'],
|
|
||||||
], $plan_data);
|
], $plan_data);
|
||||||
|
|
||||||
return $plan;
|
return $plan;
|
||||||
|
|||||||
Reference in New Issue
Block a user