Commit b9efaa25 authored by mku's avatar mku

ZP-457 #comment Windows phones are not able to sync #time 15m

git-svn-id: https://z-push.org/svn/z-push/trunk@1748 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent a4b23550
......@@ -149,14 +149,14 @@ include_once('version.php');
Request::ProcessHeaders();
// Check required GET parameters
if(Request::IsMethodPOST() && (Request::GetCommandCode() === false || !Request::GetGETUser() || !Request::GetDeviceID() || !Request::GetDeviceType()))
if(Request::IsMethodPOST() && (Request::GetCommandCode() === false || !Request::GetDeviceID() || !Request::GetDeviceType()))
throw new FatalException("Requested the Z-Push URL without the required GET parameters");
// Load the backend
$backend = ZPush::GetBackend();
// always request the authorization header
if (! Request::AuthenticationInfo())
if (! Request::AuthenticationInfo() || !Request::GetGETUser())
throw new AuthenticationRequiredException("Access denied. Please send authorisation information");
// check the provisioning information
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment