X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=VerifyAccess.php;fp=VerifyAccess.php;h=b22d919b64f4c0f5115f18d4986751470eb23d30;hb=0c2409f70776a978516bf572cf9348184758b4ca;hp=d4433e57b50282bb4e710863e86f8bda5a6d72e2;hpb=bd3dd53a98448ac651de2576807674675a938f2e;p=Pman.Core diff --git a/VerifyAccess.php b/VerifyAccess.php index d4433e57..b22d919b 100644 --- a/VerifyAccess.php +++ b/VerifyAccess.php @@ -61,26 +61,11 @@ class Pman_Core_VerifyAccess extends Pman if( empty($_REQUEST['id']) || - empty($_REQUEST['verify_key']) || - !$core_ip_access->get($_REQUEST['id']) + empty($_REQUEST['authorized_key']) || + !$core_ip_access->get($_REQUEST['id']) || + $core_ip_access->authorized_key != $_REQUEST['authorized_key'] ){ - $this->jerr('broken_link'); - return; - } - - if(!empty($coba_application_signup->coba_application_id)){ - $this->jerr('already_registered'); - return; - } - - if($coba_application_signup->verify_key != $_REQUEST['verify_key']){ - $this->jerr('broken_link'); - return; - } - - if(time() > strtotime($coba_application_signup->expiry_dt)) { - $this->jerr('expired'); - return; + $this->jerr('Invalid URL'); } $this->jdata($coba_application_signup->toArray());