Security:5 Fix HMAC handshake, generate API keys in Google Login, and relax JWT issuer
This commit is contained in:
@@ -108,8 +108,10 @@ class OtpController extends Controller
|
|||||||
// TODO: Send SMS/WhatsApp via external provider
|
// TODO: Send SMS/WhatsApp via external provider
|
||||||
|
|
||||||
// Check if passenger exists to allow immediate login (V1 style)
|
// Check if passenger exists to allow immediate login (V1 style)
|
||||||
|
// Note: Phone is stored ENCRYPTED in passengers table in V1
|
||||||
|
$encPhone = $this->encryption->encrypt($phone);
|
||||||
$passenger = DB::connection('primary')->table('passengers')
|
$passenger = DB::connection('primary')->table('passengers')
|
||||||
->where('phone', $phone)
|
->where('phone', $encPhone)
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
return $this->success([
|
return $this->success([
|
||||||
|
|||||||
Reference in New Issue
Block a user