Thursday 29 September 2005 5:43:52 am
Hi Carlos, Ad.1
Give your user access to /user/password/ view. Go to User accounts->Roles and policies edit you role and add new police:
Module: user
Function: password Limitations: No limitations Ad.2 You can make simple form, pass data to your module and disable user account or delete it. This code example will disable user.
include_once( 'kernel/classes/datatypes/ezuser/ezuser.php' );
$user =& eZUser::currentuser();
$contentObjectID = $user->attribute('contentobject_id');
$isEnabled = 0;
$userSetting =& eZUserSetting::create( $contentObjectID, $isEnabled );
$userSetting->store();
I hope this will help you.
Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog
|