Add Authenticate method to handle external peer authentication
This commit is contained in:
parent
bed4e10fe2
commit
9d9a4b46b3
3 changed files with 70 additions and 5 deletions
|
@ -55,7 +55,11 @@
|
|||
$flags = [];
|
||||
|
||||
// TODO: Update this to support `host` peers
|
||||
if($peer->isEnabled())
|
||||
if($peer->isExternal())
|
||||
{
|
||||
$flags[] = SessionFlags::AUTHENTICATION_REQUIRED;
|
||||
}
|
||||
else if($peer->isEnabled())
|
||||
{
|
||||
$flags[] = SessionFlags::AUTHENTICATION_REQUIRED;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue