jmartsch/processwire-social-login

Social login through HybridAuth, standard login, registration and user profile for your site

0.9.1 2016-12-24 10:39 UTC

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

  1. ProcessWire 3.0+

  2. Composer

If you don't have composer installed, have a look here on how to get it: Composer Installation

##Installation

  1. In your processwire root directory run composer require jmartsch/processwire-social-login
  2. If the automatic copy fails, copy the files social-login.php and register.php from /site/modules/processwire-social-login/templates folder to your /site/templates/ folder
  3. Enable fields to be shown under the profile and the register page
  4. Create a new app from Facebook Developers site: https://developers.facebook.com/apps/
  5. Go to the modules setting and enable Facebook
  6. Enter your App ID and the App Secret
  7. Start logging in by visiting the www.yoursite.com/social-login/