-
Notifications
You must be signed in to change notification settings - Fork 37
/
Module.php
63 lines (47 loc) · 1.31 KB
/
Module.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
namespace auth;
class Module extends \yii\base\Module
{
public $controllerNamespace = 'auth\controllers';
/**
* @var int
* @desc Remember Me Time (seconds), default = 2592000 (30 days)
*/
public $rememberMeTime = 2592000; // 30 days
/**
* @var array
* @desc User model relation from other models
* @see http://www.yiiframework.com/doc/guide/database.arr
*/
public $relations = array();
public $tableMap = array(
'User' => 'User',
'UserStatus' => 'UserStatus',
'ProfileFieldValue' => 'ProfileFieldValue',
'ProfileField' => 'ProfileField',
'ProfileFieldType' => 'ProfileFieldType',
);
public $layoutLogged;
public $attemptsBeforeCaptcha = 3; // Unsuccessful Login Attempts before Captcha
public $referralParam = 'ref';
/**
* @var int Seconds for token expiration
*/
public $passwordResetTokenExpire = 3600;
public $supportEmail;
public $superAdmins = ['admin'];
/**
* @var boolean Use only email for signup
*/
public $signupWithEmailOnly = false;
public function init()
{
parent::init();
\Yii::$app->getI18n()->translations['auth.*'] = [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => __DIR__.'/messages',
];
$this->setAliases([
'@auth' => __DIR__
]); }
}