public function on_user_change_picture($pars) { $this->fail_not_authenticated(); $this->user->credentials['picture'] = $pars['url']; $this->user->save(); self::setResult($this->user); }