$path = 'data/Login.json';
$this->hash = hash('sha256', $this->challenge.':'.$password);
$fields = array('csrf_token' => 'nulltoken', 'showpw' => 0, 'password' => $this->hash);
$path = 'data/Login.json';
$this->hash = hash('sha256', $this->challenge.':'.$password);
$fields = array('csrf_token' => 'nulltoken', 'showpw' => 0, 'password' => $this->hash);
private function getChallenge () {
$path = 'data/Login.json';
$fields = array('csrf_token' => 'nulltoken', 'showpw' => 0, 'challengev' => 'null');
private function getChallenge () {
$path = 'data/Login.json';
$fields = array('csrf_token' => 'nulltoken', 'showpw' => 0, 'challengev' => 'null');
$data = $this->getValues($data['body']);
if (isset($data['challengev']) && !empty($data['challengev'])) {
$data = $this->getValues($data['body']);
if (isset($data['challengev']) && !empty($data['challengev'])) {
$path = 'data/Login.json';
$fields = array('csrf_token' => $this->token, 'logout' => 'byby');
$path = 'data/Login.json';
$fields = array('csrf_token' => $this->token, 'logout' => 'byby');
$data = $this->getValues($data['body']);
if ((isset($data['status']) && $data['status'] == 'ok') && $this->checkLogin(false) === false) {
// reset challenge and session
$data = $this->getValues($data['body']);
if ((isset($data['status']) && $data['status'] == 'ok') && $this->checkLogin(false) === false) {
// reset challenge and session
$a = explode('csrf_token = "', $data['body']);
$a = explode('";', $a[1]);
$a = explode('csrf_token = "', $data['body']);
$a = explode('";', $a[1]);