Commit f6f9e5c0bfd87697adc54426ee470ca1e147e8e0
1 parent
21fdafdb
Added some TODO comments
Showing
1 changed file
with
4 additions
and
2 deletions
webservice/clienttools/ajaxhandler.php
| ... | ... | @@ -185,11 +185,9 @@ class ajaxHandler{ |
| 185 | 185 | $this->auth['session']=session_id(); |
| 186 | 186 | $this->ret->setStatus('session_id',session_id()); |
| 187 | 187 | $this->ret->addDebug('Auth',array('Session Check'=>$valid)); |
| 188 | -// echo $valid?'true':'false'.'<br /><br /><br /><br /><br /><br /><br />'; | |
| 189 | 188 | return $valid; |
| 190 | 189 | } |
| 191 | 190 | |
| 192 | - //TODO: Alter this to verify whether token was used before or whether it is new | |
| 193 | 191 | protected function checkTokenValidity(){ |
| 194 | 192 | if($this->parameters['permanentURL'])return true; |
| 195 | 193 | $token=$this->auth['token']; |
| ... | ... | @@ -395,6 +393,7 @@ class ajaxHandler{ |
| 395 | 393 | } |
| 396 | 394 | } |
| 397 | 395 | |
| 396 | + //TODO: Remove this function - deprecated | |
| 398 | 397 | protected function verifyToken(){ |
| 399 | 398 | $token=isset($this->auth['token'])?$this->auth['token']:NULL; |
| 400 | 399 | if(!$token){ |
| ... | ... | @@ -422,14 +421,17 @@ class ajaxHandler{ |
| 422 | 421 | return $dir; |
| 423 | 422 | } |
| 424 | 423 | |
| 424 | + //TODO: Remove this function - deprecated | |
| 425 | 425 | protected function verifySession(){ |
| 426 | 426 | return $this->authenticator->pickup_session(); |
| 427 | 427 | } |
| 428 | 428 | |
| 429 | + //TODO: Remove this function - deprecated | |
| 429 | 430 | protected function isAuthenticated(){ |
| 430 | 431 | return $this->authenticator->pickup_session(); |
| 431 | 432 | } |
| 432 | 433 | |
| 434 | + //TODO: Remove this function - deprecated | |
| 433 | 435 | protected function doLogin(){ |
| 434 | 436 | if($this->authenticator->login()){ |
| 435 | 437 | return true; | ... | ... |