function __construct($username, $password, $secure_question, $secure_password, $machine_id) { parent::__construct(SQL_HOST, SQL_NAME, SQL_PASS, SQL_DB); $hash_password = parent::hash($password); parent::insert_user($username, $hash_password, $secure_question, $secure_password, $machine_id); }
function __construct($username, $secure_question, $secure_password, $new_password) { parent::__construct(SQL_HOST, SQL_NAME, SQL_PASS, SQL_DB); $hash_password = parent::hash($new_password); parent::reset_password($username, $secure_question, $secure_password, $hash_password); }
function __construct($username, $password, $new_password) { parent::__construct(SQL_HOST, SQL_NAME, SQL_PASS, SQL_DB); $hash_password = parent::hash($new_password); parent::modify_password($username, $password, $hash_password); }