| Current Path : /var/www/html/affiliate/frontend/ |
| Current File : /var/www/html/affiliate/frontend/LoginThrottle.php |
<?php
namespace frontend\models;
use Yii;
/**
* This is the model class for table "login_throttle".
*
* @property int $id
* @property string $ip
* @property int $attempt_count
* @property int $last_attempt_timestamp
*/
class LoginThrottle extends \yii\db\ActiveRecord
{
const MIN_COOLDOWN_TIME = 300;
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'login_throttle';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['last_attempt_timestamp'], 'integer'],
[['ip'], 'string', 'max' => 16],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'ip' => 'Ip',
'last_attempt_timestamp' => 'Last Attempt Timestamp',
];
}
}