Ticket #503 (closed Bug report: worksforme)
Offsite login fails with multiple networks
Reported by: | maikel@… | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | Not yet assigned to a Milestone |
Component: | Auth server, Other | Version: | |
Keywords: | Cc: |
Description
When having a server setup with 1 network, all works correctly. After adding a second network and vhost, this is the error one gets:
Detailed error was: Uncaught Exception The network with id could not be found in the database (0) thrown in file /var/www/localhost/htdocs/wifidog/classes/Network.php, line 363 #0 /var/www/localhost/htdocs/wifidog/classes/Network.php(90): Network->construct() #1 /var/www/localhost/htdocs/wifidog/classes/Authenticator.php(81): Network::getObject() #2 /var/www/localhost/htdocs/wifidog/classes/Authenticators/AuthenticatorLocalUser.php(77): Authenticator->construct() #3 [internal function]: AuthenticatorLocalUser?->construct() #4 [internal function]: ReflectionClass?->newInstance() #5 /var/www/localhost/htdocs/wifidog/classes/Network.php(667): call_user_func_array(Array, Array) #6 /var/www/localhost/htdocs/wifidog/classes/Authenticator.php(158): Network->getAuthenticator() #7 /var/www/localhost/htdocs/wifidog/login/index.php(258): Authenticator::getLoginUI() #8 {main}
It seems that this class doesnt get the network id set from the vhost function