Example #1
0
 /**
  *  Check if password needs to be updated
  *
  * @param \Vendor\Guestbook\Domain\Model\Author $author
  * @return bool|string
  */
 private function checkAuthorPassword(\Vendor\Guestbook\Domain\Model\Author $author)
 {
     $success = TRUE;
     $dataProperties = $author->_getCleanProperties();
     if (isset($dataProperties['password'])) {
         $dataPass = $dataProperties['password'];
         if ($dataPass === $author->getPassword()) {
             $success = FALSE;
         }
     }
     return $success;
 }