Showing posts with label authentication. Show all posts
Showing posts with label authentication. Show all posts

Monday, 30 April 2012

How to create a good password?


Password Format is the key to a good and easy to remember password that can be used for multiple accounts.


First, come out a format for your password. For example, I might have this format for all my email accounts.


password format: [password][separator][account]

  • [password] : Phase that you like. 
  • [separator] : Single or multiple symbol or letter, or mixture of both. 
  • [account] : Account Code that represent the account.

I use the phase 'go for a good movie tonight', and I use the code 'go4agm29' to represent the phase.
Normally, symbol is good separator, because some passwords insist that you need to have at least 1 symbol. The separator can be anything such as _, -, @
Account code is easy. For example, gmail, ymail, gm, ym.


Then, combine each part together. So my whole password for gmail can be:- 

  • go4agm29@gmail or 
  • go41gm2nite_gm or
  • g4agm29_gmail

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!