Beispiel #1
0
 /**
  * Get confirmation code
  *
  * @param string $user   Username to get code for
  * @param string $type   Code type
  *
  * @return string  Confirmation code
  */
 public function getConfirmationCode($user, $type = 'activate')
 {
     $encrypted = $this->_getCryptedPassword($user);
     if ($encrypted instanceof PEAR_Error) {
         return $encrypted;
     }
     return Folks::encodeString($user, $type . $encrypted);
 }