My favorites | Sign in
Project Home Downloads Issues Source
Project Information


On the internet, we usually register a user who has a valid e-mail account. You may use yii skeleton application by Jonah for this purpose.

On the other hand, especially in a specific project in a certain corporation, user authentication can be simplified. For this purpose, I have built a simplified user authentication module named 'simpleLogin'.

This module enables the registration of an unknown user immediately. It is very useful for project members who can be trusted in the above situation.


How to install (to the skeleton application)

$ cd yiipath/demos
$ ../framework/yiic webapp your_app_name
$ cd your_app_name/protected
$ emacs config/main.php


$ tar xvzf simpleLogin-rxx.tgz
This extracts simpleLogin module under modules/simpleLogin/*

$ rm data/testdrive.db
$ sqlite3 data/testdrive.db < modules/simpleLogin/schema.sqlite.sql

$ chmod 777 data
$ chmod 666 data/testdrive.db

How to use

$ emacs views/layouts/main.php

-     array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
+     array('label'=>'SimpleLogin', 'url'=>array('/simpleLogin/default/index'), 'visible'=>Yii::app()->user->isGuest),
+     array('label'=>'Delete', 'url'=>array('/simpleLogin/Default/delete'), 'visible'=>!Yii::app()->user->isGuest),
      array('label'=>'Logout', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest),

You can use this module by accessing 'http://YOURHOST/simpleLogin/index.php?r=simpleLogin'.


Powered by Google Project Hosting