Skip to content
Snippets Groups Projects
Unverified Commit 0dcdc386 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #18095 from demeritcowboy/no-db

#1926 - Towards supporting SSL for mysql connections - remove DB::connect that doesn't add anything
parents 0f7015d2 04212a64
Branches
Tags
No related merge requests found
......@@ -717,15 +717,12 @@ class CRM_Utils_System {
* process typically done in CLI and cron scripts. See: CRM-12648
*
* Q: Can we move this to the userSystem class so that it can be tuned
* per-CMS? For example, when dealing with UnitTests UF, there's no
* userFrameworkDSN.
* per-CMS? For example, when dealing with UnitTests UF, does it need to
* do this session write since the original issue was for Drupal.
*/
$session = CRM_Core_Session::singleton();
$session->set('civicrmInitSession', TRUE);
if ($config->userFrameworkDSN) {
$dbDrupal = DB::connect($config->userFrameworkDSN);
}
return $config->userSystem->authenticate($name, $password, $loadCMSBootstrap, $realPath);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment