Neos.Neos/Classes/Domain/Service/UserService.php
public function activateUser(User $user)
    {
        foreach ($user->getAccounts() as $account) {
            /** @var Account $account */
            $account->setExpirationDate(null);
            $this->accountRepository->update($account);
        }
        $this->emitUserActivated($user);
    }
public function activateUser(User $user)
    {
        foreach ($user->getAccounts() as $account) {
            /** @var Account $account */
            $account->setExpirationDate(null);
            $this->accountRepository->update($account);
        }
        $this->emitUserActivated($user);
    }
public function activateUser ( User $ user ) { foreach ( $ user -> getAccounts ( ) as $ account ) { /** @var Account $account */ $ account -> setExpirationDate ( null ) ; $ this -> accountRepository -> update ( $ account ) ; } $ this -> emitUserActivated ( $ user ) ; }
Reactivates the given user

@param User $user The user to deactivate
@return void
@api
Reactivates the given user