mirror of
https://github.com/elyby/accounts.git
synced 2024-11-15 17:56:30 +05:30
24 lines
546 B
PHP
24 lines
546 B
PHP
|
<?php
|
||
|
namespace common\models\confirmations;
|
||
|
|
||
|
use common\models\EmailActivation;
|
||
|
use yii\helpers\ArrayHelper;
|
||
|
|
||
|
class RecoverPassword extends EmailActivation {
|
||
|
|
||
|
public function behaviors() {
|
||
|
return ArrayHelper::merge(parent::behaviors(), [
|
||
|
'expirationBehavior' => [
|
||
|
'repeatTimeout' => 30 * 60,
|
||
|
'expirationTimeout' => 1 * 60 * 60,
|
||
|
],
|
||
|
]);
|
||
|
}
|
||
|
|
||
|
public function init() {
|
||
|
parent::init();
|
||
|
$this->type = EmailActivation::TYPE_FORGOT_PASSWORD_KEY;
|
||
|
}
|
||
|
|
||
|
}
|