v4.2.1 2018-01-24 12:44 UTC

README

此模块是TypiCMS的一部分,TypiCMS是一个基于Laravel 5的多语言内容管理系统。

允许社交登录

Google登录

创建Client ID和Client Secret,并将其添加到config/services.php中。同时,将变量添加到.env文件中。

'google' => [
    'client_id'     => env('GOOGLE_ID'),
    'client_secret' => env('GOOGLE_SECRET'),
    'redirect'      => env('GOOGLE_REDIRECT', 'http://'.$_SERVER["HTTP_HOST"].'/social/handle/google')
],

认证设置

config/auth.php中调整正确的设置。

'social_users' => true, // Switches the social logins on and off
'social_guest_register' => false, // Allows guest registration with social login
'social_admin_emails' => env('SOCIAL_ADMIN_EMAILS', ''), // You can add more than one by separating with comma
'social_admin_domains' => env('SOCIAL_ADMIN_DOMAINS', ''), // You can add more than one by separating with comma