Showing posts with label codeigniter. Show all posts
Showing posts with label codeigniter. Show all posts

Wednesday, 3 August 2011

A3M - Account Authentication & Authorization Module for CodeIgniter

I found this very cool login module for CodeIgniter called A3M. It has a great OpenID module, and it supports of all the major openid providers (Facebook, Twitter, Google, Yahoo). I am testing A3M Peanutbutter for CI2.0

Get Started
1) Download A3M.
2) Extract to web folder.
3) Create a folder for storing user profile picture, <site>/resource/user/profile
4) Create a database.
5) Run a3m_mushmellow.sql file to create tables and basic data.
6) Perform the following update because MySQL 5.0 does not allow default value for text type.
Method 1: Go to ci_session table, change column user_data from not allow null to ALLOW NULL.
or
Method 2: Alternatively, you can change the lines in a3m_mushmellow.sql file before you run step 5. Remove NOT NULL.
From To CodeIgniter Configurations
1) Go to CodeIgniter configuration folder, <site>/application/config
2) Define values for files, config.php and database.php

A3M Configurations
1) Go to A3M configuration folder, <site>/application/modules/account/config
2) Define values for files, account.php, facebook.php, recaptcha.php and twitter.php

All done!