function handle($args)
{
parent::handle($args);
+ if($_SERVER['REQUEST_METHOD'] == 'POST') {
+ $this->handlePost();
+ }
$this->showPage();
}
// CSRF protection
- $token = $this->trimmed('token');
+/* $token = $this->trimmed('token');
if (!$token || $token != common_session_token()) {
$this->showForm(_('There was a problem with your session token. '.
'Try again, please.'));
return;
- }
+ } */
if($this->arg('upload')) {
$this->uploadPhoto();