This package will allow you to lookup user credentials with your Yii application using the Phautentic Authentication library.
Install it via composer.
composer require phauthentic/authentication-yii
All you need to do is to instantiate a model object and pass it to the resolver.
$model = new Users();
$resolver = new YiiResolver($model);
You can pass a connection as well if you need to:
$model = new Users();
$connection = Yii::$app->getDb();
$resolver = new YiiResolver($model, $connection);
For further information on how to configure identifiers and resolvers please check the documentation of Phautentic Authentication.
Licensed under the MIT license.
Copyright (c) Phauthentic