refactor: update OTP system to support user-specific verification tables with legacy encryption and multi-role authentication.

This commit is contained in:
Hamza-Ayed
2026-04-23 17:03:38 +03:00
parent d64a423db9
commit 098aa9ad37
10 changed files with 649 additions and 189 deletions

View File

@@ -16,7 +16,7 @@ return [
'env' => env('APP_ENV', 'production'),
'debug' => (bool) env('APP_DEBUG', false),
'url' => env('APP_URL', 'https://api-v2.intaleq.xyz'),
'timezone' => 'UTC',
'timezone' => 'Asia/Amman',
'locale' => 'ar',
'fallback_locale' => 'en',
'faker_locale' => 'ar_SA',

View File

@@ -37,6 +37,7 @@ return [
'prefix' => '',
'strict' => false,
'engine' => 'InnoDB',
'timezone' => '+03:00',
'options' => extension_loaded('pdo_mysql') ? [
PDO::ATTR_PERSISTENT => true,
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8mb4 COLLATE utf8mb4_general_ci",
@@ -62,6 +63,7 @@ return [
'prefix' => '',
'strict' => false,
'engine' => 'InnoDB',
'timezone' => '+03:00',
'options' => extension_loaded('pdo_mysql') ? [
PDO::ATTR_PERSISTENT => true,
] : [],
@@ -86,6 +88,7 @@ return [
'prefix' => '',
'strict' => false,
'engine' => 'InnoDB',
'timezone' => '+03:00',
'options' => extension_loaded('pdo_mysql') ? [
PDO::ATTR_PERSISTENT => true,
] : [],

View File

@@ -42,4 +42,10 @@ return [
// Secret Salt
'secret_salt_parent' => env('SECRET_SALT_PARENT', ''),
// Wallet Security
'wallet_jwt_secret' => env('WALLET_JWT_SECRET'),
'wallet_hmac_secret' => env('WALLET_HMAC_SECRET'),
'wallet_allowed_audiences' => explode(',', env('WALLET_ALLOWED_AUDIENCES', '')),
'fp_pepper' => env('FP_PEPPER', ''),
];