Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2023-03-24 06:00:31 +00:00
committed by RafficMohammed
parent 0975cc5dd9
commit b3b057e0cc
33 changed files with 172 additions and 184 deletions

View File

@@ -550,7 +550,7 @@ class AuthController extends Controller
$otp = Otp::select('otp', 'updated_at')->where('user_id', '=', $user->id)
->first();
if ($otp != null) {
if (($otp_length == 6 && !preg_match('/[a-z]/i', $request->input('otp')))) {
if ($otp_length == 6 && !preg_match('/[a-z]/i', $request->input('otp'))) {
$otp2 = Hash::make($request->input('otp'));
$date1 = date_format($otp->updated_at, 'Y-m-d h:i:sa');
$date2 = date('Y-m-d h:i:sa');