*/
private $challenge = '';
- /**
- * csrf_token
- * @var string
- */
- private $token = '';
-
- /**
- * hashed password
- * @var string
- */
- private $hash = '';
-
- /**
- * session cookie
- * @var string
- */
- private $cookie = '';
-
/**
* derivedk cookie
* @var string
$json = $this->getValues($data['body']);
if (isset($json['login']) && $json['login'] == 'success') {
- $this->cookie = $this->getCookie($data);
+ $this->cookie = 'challengev='.$this->challenge.'; ';
+ $this->cookie .= $this->getCookie($data);
$this->derivedk = $this->getDerviedk($password);
$fields = array('csrf_token' => 'nulltoken', 'showpw' => 0, 'challengev' => 'null');
$data = $this->sentRequest($path, $fields);
$data = $this->getValues($data['body']);
-
+ print_r($data);
if (isset($data['challengev']) && !empty($data['challengev'])) {
return $data['challengev'];
}
*
* @return string
*/
- private function getToken () {
+ protected function getToken () {
$this->checkLogin();
$path = 'html/content/overview/index.html';