public function actionVerify()
    {
        /** @var RecoveryForm */
        $model = $this->module->createFormModel('RecoveryForm', 'verify');
        $model->setAttributes($_GET);
        if ($model->validate() && $model->getIdentity()->verifyEmail($this->module->requireVerifiedEmail)) {
            // regenerate the activation key to prevent reply attack
            $model->getIdentity()->getActivationKey();
            Yii::$app->session->setFlash('success', Yii::t('usr', 'Your email address has been successfully verified.'));
        } else {
            Yii::$app->session->setFlash('error', Yii::t('usr', 'Failed to verify your email address.'));
        }

        return $this->redirect([Yii::$app->user->isGuest ? 'login' : 'profile']);
    }