2016-05-16 04:03:19 +05:30
|
|
|
<?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' => [
|
2016-07-17 23:16:04 +05:30
|
|
|
'repeatTimeout' => 6 * 60 * 60, // 6h
|
|
|
|
'expirationTimeout' => 1 * 60 * 60, // 1h
|
2016-05-16 04:03:19 +05:30
|
|
|
],
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function init() {
|
|
|
|
parent::init();
|
|
|
|
$this->type = EmailActivation::TYPE_CURRENT_EMAIL_CONFIRMATION;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|