mirror of
https://github.com/elyby/accounts.git
synced 2024-10-31 16:03:01 +05:30
50439fdaeb
У EmailActivation добавлено поле $_data и дописано поведение для работы с ним Упрощено подключение фикстур для EmailActivations
24 lines
566 B
PHP
24 lines
566 B
PHP
<?php
|
|
namespace common\models\confirmations;
|
|
|
|
use common\models\EmailActivation;
|
|
use yii\helpers\ArrayHelper;
|
|
|
|
class CurrentEmailConfirmation extends EmailActivation {
|
|
|
|
public function behaviors() {
|
|
return ArrayHelper::merge(parent::behaviors(), [
|
|
'expirationBehavior' => [
|
|
'repeatTimeout' => 6 * 60 * 60,
|
|
'expirationTimeout' => 1 * 60 * 60,
|
|
],
|
|
]);
|
|
}
|
|
|
|
public function init() {
|
|
parent::init();
|
|
$this->type = EmailActivation::TYPE_CURRENT_EMAIL_CONFIRMATION;
|
|
}
|
|
|
|
}
|