src/entities/User.php
public function confirmSignup() : void
    {
        if (!$this->isWait()) {
            throw new \DomainException(Yii::t('setrun/user', 'User is already active'));
        }
        $this->status = self::STATUS_ACTIVE;
        $this->removeEmailConfirmToken();
    }
public function confirmSignup() : void
    {
        if (!$this->isWait()) {
            throw new \DomainException(Yii::t('setrun/user', 'User is already active'));
        }
        $this->status = self::STATUS_ACTIVE;
        $this->removeEmailConfirmToken();
    }
public function confirmSignup ( ) : void { if ( ! $ this -> isWait ( ) ) { throw new \ DomainException ( Yii :: t ( 'setrun/user' , 'User is already active' ) ) ; } $ this -> status = self :: STATUS_ACTIVE ; $ this -> removeEmailConfirmToken ( ) ; }
Confirm user sing up.
@return void
Confirm user sing up .