Forums / Developer / Help: Admin is not allowed / Comment40709
Dominik Pich
Friday 21 May 2004 1:31:13 am
$user =& eZUser::fetch( $forgotPasswdObj->attribute( 'user_id' ) ); $email = $user->attribute( 'email' ); $ini =& eZINI::instance(); $passwordLength = $ini->variable( "UserSettings", "GeneratePasswordLength" ); $password = eZUser::createPassword( $passwordLength ); $passwordConfirm = $password; $userToSendEmail =& $user; $user->setInformation( $user->id(), $user->attribute( 'login' ), $email, $password, $passwordConfirm ); $user->store();
It changed the password of the admin - set a new one you know