jmartsch / processwire-social-login
Social login through HybridAuth, standard login, registration and user profile for your site
Installs: 51
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 5
Forks: 2
Open Issues: 0
Type:pw-module
Requires
- php: >=5.3.0
- facebook/graph-sdk: 5.4
- hari/pw-module: ~1.0
- hybridauth/hybridauth: ^2.8
This package is not auto-updated.
Last update: 2024-04-13 17:35:39 UTC
README
This module provides simple way to allow social login via HybridAuth or a standard login
It also offers a registration form and the ability to edit your user profile on your website.
This module was originally written by Mauro Mascia.
Compatibility for ProcessWire 3 and latest HybridAuth was added by Jens Martsch
It creates a new page called /social-login/ which does quick social login or standard. It creates also a page called /register/ in which a new user can create an account for the site. It adds social_id field to user template, that is used to match with the social account, as well a oauth field in which are saved all the social info of the user.
This module uses the HybridAuth PHP library: HybridAuth goal is to act as an abstract API between your application and various social APIs and identities providers such as Facebook, Twitter and Google.
Requirements
-
ProcessWire 3.0+
-
Composer
If you don't have composer installed, have a look here on how to get it: Composer Installation
##Installation
- In your processwire root directory run
composer require jmartsch/processwire-social-login
- If the automatic copy fails, copy the files
social-login.php
andregister.php
from/site/modules/processwire-social-login/templates
folder to your/site/templates/
folder - Enable fields to be shown under the profile and the register page
- Create a new app from Facebook Developers site: https://developers.facebook.com/apps/
- Go to the modules setting and enable Facebook
- Enter your App ID and the App Secret
- Start logging in by visiting the www.yoursite.com/social-login/