The source code of http://hoauth.hamstercms.com/yii-user