PMCORE-2298 Password is stored in plain text when is hashed via G::encrypt and it contains a pipe (|)
This commit is contained in:
@@ -38,7 +38,7 @@ class DbConnectionsTest extends TestCase
|
||||
'DBS_SERVER' => env('DB_HOST'),
|
||||
'DBS_DATABASE_NAME' => $dbName,
|
||||
'DBS_USERNAME' => env('DB_USERNAME'),
|
||||
'DBS_PASSWORD' => G::encrypt(env('DB_PASSWORD'), $dbName) . "_2NnV3ujj3w",
|
||||
'DBS_PASSWORD' => G::encrypt(env('DB_PASSWORD'), $dbName, false, false) . "_2NnV3ujj3w",
|
||||
'DBS_PORT' => '3306',
|
||||
]);
|
||||
|
||||
@@ -69,7 +69,7 @@ class DbConnectionsTest extends TestCase
|
||||
'DBS_SERVER' => env('DB_HOST'),
|
||||
'DBS_DATABASE_NAME' => $dbName,
|
||||
'DBS_USERNAME' => env('DB_USERNAME'),
|
||||
'DBS_PASSWORD' => G::encrypt(env('DB_PASSWORD'), $dbName) . "_2NnV3ujj3w",
|
||||
'DBS_PASSWORD' => G::encrypt(env('DB_PASSWORD'), $dbName, false, false) . "_2NnV3ujj3w",
|
||||
'DBS_PORT' => '3306',
|
||||
]);
|
||||
|
||||
@@ -97,7 +97,7 @@ class DbConnectionsTest extends TestCase
|
||||
'DBS_SERVER' => env('DB_HOST'),
|
||||
'DBS_DATABASE_NAME' => $dbName,
|
||||
'DBS_USERNAME' => env('DB_USERNAME'),
|
||||
'DBS_PASSWORD' => G::encrypt(env('DB_PASSWORD'), $dbName) . "_2NnV3ujj3w",
|
||||
'DBS_PASSWORD' => G::encrypt(env('DB_PASSWORD'), $dbName, false, false) . "_2NnV3ujj3w",
|
||||
'DBS_PORT' => '3306',
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user