projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bd3dd53
)
VerifyAccess.php
author
edward
<edward@roojs.com>
Thu, 15 Feb 2018 03:27:44 +0000
(11:27 +0800)
committer
edward
<edward@roojs.com>
Thu, 15 Feb 2018 03:27:44 +0000
(11:27 +0800)
VerifyAccess.php
patch
|
blob
|
history
diff --git
a/VerifyAccess.php
b/VerifyAccess.php
index
d4433e5
..
b22d919
100644
(file)
--- a/
VerifyAccess.php
+++ b/
VerifyAccess.php
@@
-61,26
+61,11
@@
class Pman_Core_VerifyAccess extends Pman
if(
empty($_REQUEST['id']) ||
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());
}
$this->jdata($coba_application_signup->toArray());