When login don't reload the whole browser. Just rebuilt screens

This commit is contained in:
djmaze 2021-11-01 11:24:11 +01:00
parent d3500e2921
commit e52addf346
16 changed files with 74 additions and 57 deletions

View file

@ -198,7 +198,7 @@ trait Admin
$sToken = $this->getAdminToken();
$this->setAdminAuthToken($sToken);
return $this->DefaultResponse(__FUNCTION__, $sToken ? true : false);
return $this->DefaultResponse(__FUNCTION__, $sToken ? $this->AppData(true) : false);
}
public function DoAdminLogout() : array

View file

@ -58,7 +58,7 @@ trait User
}
}
return $this->TrueResponse(__FUNCTION__);
return $this->DefaultResponse(__FUNCTION__, $this->AppData(false));
}
/**