/** * @param bool|false $rememberMe * @param bool|true $withRedirect * @param bool|true $validateConfirmation * @return Response|bool */ public function signIn($rememberMe = false, $withRedirect = true, $validateConfirmation = false) { if ($this->validate() && $this->resetFailAuthCounter() && ($userRedirect = parent::signIn(true, $this->rememberMe))) { return $userRedirect; } else { return false; } }
/** * @return UserModel */ public function getUserModel() { return $this->hasOne(UserModel::className(), ['id' => 'user'])->one(); }
/** * @return bool */ public function sendConfirmationMail() { return $this->validate() && parent::sendConfirmationMail(); }
public static function findIdentity($id) { return UserModel::findOne($id); }
public function attributeLabels() { return array_merge(parent::attributeLabels(), ['repeatPassword' => \Yii::t('guest', 'Repeat password'), 'captcha' => \Yii::t('guest', 'Enter controlling digits')]); }
public function attributeLabels() { return array_merge(parent::attributeLabels(), ['email' => \Yii::t('user', 'New e-mail'), 'currentPassword' => \Yii::t('user', 'Current password')]); }
/** * @return bool */ public function sendResetPasswordMail() { return $this->validate() && $this->generateHash() && parent::sendResetPasswordMail(); }
public function attributeLabels() { return array_merge(parent::attributeLabels(), ['currentPassword' => \Yii::t('user', 'Current password'), 'newPassword' => \Yii::t('user', 'New password'), 'repeatPassword' => \Yii::t('user', 'Repeat a new password')]); }