/**
  * @inheritdoc
  */
 public function rules()
 {
     return [['secure_key', 'required'], ['secure_key', 'trim'], ['secure_key', 'string', 'max' => 53], ['secure_key', 'exist', 'targetClass' => User::className(), 'filter' => function ($query) {
         $query->emailVerified(0);
     }]];
 }
 /**
  * @return $this
  */
 public function getUser()
 {
     return $this->hasOne(User::className(), ['id' => 'user_id'])->inverseOf('profile');
 }
 /**
  * @inheritdoc
  */
 public function rules()
 {
     return [['email', 'required'], ['email', 'trim'], ['email', 'string', 'max' => 100], ['email', 'exist', 'targetClass' => User::className(), 'filter' => function ($query) {
         $query->status(User::STATUS_ACTIVE);
     }]];
 }
 /**
  * @inheritdoc
  */
 public function rules()
 {
     return [[['password', 'repassword', 'secure_key'], 'required'], [['password', 'repassword', 'secure_key'], 'trim'], ['password', 'match', 'pattern' => '/^(?=.*\\d)(?=.*[A-Za-z])[0-9A-Za-z-_!@,#$%]{6,16}$/', 'message' => Yii::t('users', 'SIMPLE_PASSWORD')], ['repassword', 'compare', 'compareAttribute' => 'password'], ['secure_key', 'string', 'max' => 64], ['secure_key', 'exist', 'targetClass' => User::className(), 'filter' => function ($query) {
         $query->status(User::STATUS_ACTIVE);
     }]];
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUser()
 {
     return $this->hasOne(User::className(), ['id' => 'user_id']);
 }
 /**
  * @inheritdoc
  */
 public function rules()
 {
     return [['email', 'required'], ['email', 'trim'], ['email', 'email'], ['email', 'exist', 'targetClass' => User::className(), 'filter' => function ($query) {
         $query->emailVerified(0);
     }]];
 }