common/models/forms/Register.php
public function validateEmail( $attribute, $params ) {

		if( !$this->hasErrors() ) {

			if( $this->userService->isExistByEmail( $this->email ) ) {

				$this->addError( $attribute, Yii::$app->coreMessage->getMessage( CoreGlobal::ERROR_EMAIL_EXIST ) );
			}
		}
	}
public function validateEmail( $attribute, $params ) {

		if( !$this->hasErrors() ) {

			if( $this->userService->isExistByEmail( $this->email ) ) {

				$this->addError( $attribute, Yii::$app->coreMessage->getMessage( CoreGlobal::ERROR_EMAIL_EXIST ) );
			}
		}
	}
public function validateEmail ( $ attribute , $ params ) { if ( ! $ this -> hasErrors ( ) ) { if ( $ this -> userService -> isExistByEmail ( $ this -> email ) ) { $ this -> addError ( $ attribute , Yii :: $ app -> coreMessage -> getMessage ( CoreGlobal :: ERROR_EMAIL_EXIST ) ) ; } } }
Check whether the email is available.

@param string $attribute
@param array $params
Check whether the email is available .