Exemplo n.º 1
0
 /**
  * @param string $guid
  * @param Form   $form
  *
  * @return FormEntityHandler
  */
 public function saveProfileRecoveryForm($guid, Form $form)
 {
     /** @var Storage\Entity\Oauth $oauth */
     $oauth = $this->records->getOauthByGuid($guid);
     if ($oauth !== false) {
         $password = $form->get('password')->getData();
         $oauth->setPassword($password);
         $this->records->saveOauth($oauth);
     }
     return $this;
 }