You are here

function ga_login_test_boot in Google Authenticator login 7

Implements hook_boot().

File

tests/ga_login_test/ga_login_test.module, line 11
ga_login_test module.

Code

function ga_login_test_boot() {
  global $drupal_hash_salt, $databases;
  if (empty($drupal_hash_salt)) {
    $clone = $databases;
    $clone['default']['default']['prefix'] = "";
    $drupal_hash_salt = hash('sha256', serialize($clone));
  }
}