/**
  * If a user is authenticated, the return value specifies if there is an activation pending.
  * If no user is authenticated, the return value is null.
  *
  * @return bool|null
  */
 public function isActivationPending()
 {
     $user = $this->session->getCurrentUser();
     return $user !== null ? !$user->isActive() : null;
 }