some minor cleanup - change the default of the discover tab (public stream access)

This commit is contained in:
redmatrix
2015-12-10 19:18:55 -08:00
parent 8389d8677d
commit f73c82632f
5 changed files with 28 additions and 23 deletions

View File

@@ -102,19 +102,20 @@ class Auth {
function Verify($channel,$hubloc) {
logger('auth request received from ' . $hubloc['hubloc_addr'] );
// check credentials and access
// If they are already authenticated and haven't changed credentials,
// we can save an expensive network round trip and improve performance.
$this->remote = remote_channel();
$this->remote_service_class = '';
$this->remote_level = 0;
$this->remote_hub = $hubloc['hubloc_url'];
$this->dnt = 0;
// check credentials and access
// If they are already authenticated and haven't changed credentials,
// we can save an expensive network round trip and improve performance.
// Also check that they are coming from the same site as they authenticated with originally.
$already_authed = (((remote_channel()) && ($hubloc['hubloc_hash'] == remote_channel())