convert AuthUtils to a non-static class and instantiate it as an object, support...
[authserver.git] / authsystem.inc.php
index 62c6a80fd965c0f7369507cba2824b3ccaff3f28..a30e2abfbb23050137e307e64c698ee61b8fac7b 100644 (file)
@@ -10,14 +10,13 @@ ini_set('display_errors', 1); error_reporting(E_ALL);
 $dbdata = json_decode(file_get_contents('/etc/kairo/auth_db.json'), true);
 if (!is_array($dbdata)) { trigger_error('DB configuration not found', E_USER_ERROR); }
 
-$pwd_options = array('cost' => 10);
-
 // Extended DOM document class
 require_once('../kairo/include/cbsm/util/document.php-class');
 // Class for sending emails
 require_once('../kairo/include/classes/email.php-class');
 // Class for sending emails
 require_once(__DIR__.'/authutils.php-class');
+$utils = new AuthUtils(array());
 
 bindtextdomain('kairo_auth', 'en'); // XXX: Should negotiate locale.
 bind_textdomain_codeset('kairo_auth', 'utf-8');