yeesoft/yii2-yee-auth

Authorization Module For Yee CMS

0.1.0 2017-03-01 10:53 UTC

This package is auto-updated.

Last update: 2022-03-29 00:25:19 UTC


README

##Yee CMS - Auth Module

####Frontend authorization module

This module is part of Yee CMS (based on Yii2 Framework).

This module implements user registration, authorization, social authorization, password recovery and so on.

Installation

Either run

composer require --prefer-dist yeesoft/yii2-yee-auth "~0.1.0"

or add

"yeesoft/yii2-yee-auth": "~0.1.0"

to the require section of your composer.json file.

Run migrations

yii migrate --migrationPath=@vendor/yeesoft/yii2-yee-auth/migrations/

Configuration

  • In your frontend config file
'modules'=>[
    'auth' => [
        'class' => 'yeesoft\auth\AuthModule',
    ],
],
'components' => [
    'authClientCollection' => [
        'class' => 'yii\authclient\Collection',
        'clients' => [
            'google' => [
                'class' => 'yii\authclient\clients\Google',
                'clientId' => '*****',
                'clientSecret' => '*****',
            ],
            'facebook' => [
                'class' => 'yii\authclient\clients\Facebook',
                'clientId' => '*****',
                'clientSecret' => '*****',
            ],
            'twitter' => [
                'class' => 'yii\authclient\clients\Twitter',
                'consumerKey' => '*****',
                'consumerSecret' => '*****',
            ],
        ],
    ],
],

Screenshots

Flickr - Yee CMS Post Module