R
R
run1822015-03-11 00:53:48
Yii
run182, 2015-03-11 00:53:48

How to set up database authorization in Yii2?

By default it has this value:

private static $users = [
        '100' => [
            'id' => '100',
            'username' => 'admin',
            'password' => 'admin',
            'authKey' => 'test100key',
            'accessToken' => '100-token',
        ],
        '101' => [
            'id' => '101',
            'username' => 'demo',
            'password' => 'demo',
            'authKey' => 'test101key',
            'accessToken' => '101-token',
        ],
    ];

How can I fix the code so that it checks against the database?
Tell me, please, shoveled all the forums - did not find a solution.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2015-03-11
@SantaCluster

but in Russian:
rgblog.ru/page/sozdanie-sajta-na-yii-framework-20-...
www.elisdn.ru/blog/65/seo-service-on-yii2-moving-u...

A
AlexLIn, 2015-03-11
@AlexLIn

www.bsourcecode.com/yiiframework2/yii-2-user-login...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question