ApiDoc BACKEND

UserConfig extends User

Class UserConfig. Es usado en la configuración del módulo 'user' en /config/web

Table of Contents

Properties

$cookieLifetime  : mixed
$enableAutoLogin  : mixed
$identityClass  : mixed
$loginUrl  : mixed

Methods

getIsSuperadmin()  : bool
Allows to call Yii::$app->user->isSuperadmin
getUsername()  : string
afterLogin()  : mixed

Properties

$cookieLifetime

public mixed $cookieLifetime = 2592000
Tags
inheritdoc

$enableAutoLogin

public mixed $enableAutoLogin = true
Tags
inheritdoc

$identityClass

public mixed $identityClass = 'app\api\v1\models\user_management\User'
Tags
inheritdoc

$loginUrl

public mixed $loginUrl = ['/user-management/auth/login']
Tags
inheritdoc

Methods

getIsSuperadmin()

Allows to call Yii::$app->user->isSuperadmin

public getIsSuperadmin() : bool
Return values
bool

getUsername()

public getUsername() : string
Return values
string

afterLogin()

protected afterLogin(mixed $identity, mixed $cookieBased, mixed $duration) : mixed
Parameters
$identity : mixed
$cookieBased : mixed
$duration : mixed
Tags
inheritdoc

        
On this page

Search results