It allows basic operations on an account, see changelog and roadmap for current and next features.
Resources ¶
Changelog ¶
v0.2 (Jan 29, 2013) ¶
- Requires mail extension.
- Register and change email are verified by email.
- Reset password.
v0.1 (Jan 18, 2013) ¶
- Register, login, logout, account, change email, change password and desactivate.
Roadmap ¶
- Keep time and IP of registration and last activity.
- Account administration.
Installation ¶
Unpack account module under your modules directory.
Unpack mail extension under your extensions directory and configure it.
Execute account/data/schema.mysql.sql script in your database.
Enable account module in your configuration:
'modules'=>array(
...
'account'=>array(
'defaultController'=>'account',
),
),
- Change your login URL to /account/account/login:
'user'=>array(
...
'loginUrl'=>array('/account/account/login'),
),
- Add Register, Login, Account and Logout options to your main menu:
<?php $this->widget('zii.widgets.CMenu',array(
'items'=>array(
...
array('label'=>'Register', 'url'=>array('/account/account/register'), 'visible'=>Yii::app()->user->isGuest),
array('label'=>'Login', 'url'=>array('/account/account/login'), 'visible'=>Yii::app()->user->isGuest),
array('label'=>'Account', 'url'=>array('/account/account/account'), 'visible'=>!Yii::app()->user->isGuest),
array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/account/account/logout'), 'visible'=>!Yii::app()->user->isGuest)
),
)); ?>
- Show user flashes in your main layout:
<?php foreach(Yii::app()->user->getFlashes() as $key => $message) {
echo '<div class="flash-' . $key . '">' . $message . "</div>\n";
} ?>
ApXaHgheJI
demo?
demo
is now available :)
ApXaHgheJI
Dude , demo user for administrator ? - I know a module, there you can make some relation between profile fields and other tables, generate N field from Admin-Area,
manage users, block , unblock, update, add, delete...
Sorry your module its.... weak for the moment !
But nice try, maybe in the future ... !!!
Not an all-in-one
ApXaHgheJI, there is no account administration, yet. I know about yii-user and yii-user-management modules, they are complete solutions but I don't need all their features.
Yes, this module is intentionally very simple. I hope to build several concise modules to increase their reusability :)
Wow
i like this
Thanks...
Login before validating account?
I've been studying the code of this module and it seems that it allows a user to login before validating his account. Did you test this?
RE: Login before validating account?
Yes,I did. This is the expected behavior.
It isn't difficult to configure the module to disallow it.
demo
demo version not working.
demo
@leo4all Sorry, my hosting is over and I can not afford to renew it. Know any free?
Great
I need exactly this extension. Account handling, without the profile and other things.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.