Re: Mancata notifica del comando "Genera password"
Posted: Wed Mar 03, 2021 5:42 pm
FORMA LMS Community
https://formalms.org/forum/
Code: Select all
}
public function randomPassword($idst) {
$acl_manager =& Docebo::user()->getAclManager();
$new_password = $this->aclManager->random_password();
$userid = $acl_manager->getUserid($idst, false);
if($this->changePassword($idst, $new_password)){
$array_subst = array(
'[url]' => Get::site_url(),
'[userid]' => $userid,
'[password]' => $new_password
);
require_once(_base_.'/lib/lib.eventmanager.php');
$e_msg = new EventMessageComposer();
$e_msg->setSubjectLangText('email', '_MODIFIED_USER_SBJ', false);
$e_msg->setBodyLangText('email', '_MODIFIED_USER_TEXT', $array_subst );
$e_msg->setBodyLangText('email', '_PASSWORD_CHANGED', $array_subst );
$recipients = array($idst);
createNewAlert('UserMod', 'directory', 'edit', '1', 'New user created', $recipients, $e_msg, true );
return true;
}
else return false;
}
Code: Select all
}
public function randomPassword($idst)
{
$acl_manager = &Docebo::user()->getAclManager();
$new_password = $this->aclManager->random_password();
$userid = $acl_manager->getUserid($idst, false);
if ($this->changePassword($idst, $new_password)) {
$array_subst = array(
'[url]' => Get::site_url(),
'[userid]' => $userid,
'[password]' => $new_password
);
require_once(_base_ . '/lib/lib.eventmanager.php');
$e_msg = new EventMessageComposer();
$e_msg->setSubjectLangText('email', '_MODIFIED_USER_SBJ', false);
$e_msg->setBodyLangText('email', '_MODIFIED_USER_TEXT', $array_subst);
$e_msg->setBodyLangText('email', '_PASSWORD_CHANGED', $array_subst);
$recipients = array($idst);
createNewAlert('UserMod', 'directory', 'edit', '1', 'New user created', $recipients, $e_msg, true);
return true;
} else return false;
}
PHP è sempre la 7.0. Ho anche provato a passare alla 7.1 per fare un test, ma niente (poi ho rimesso la 7.0).
Allora c'è qualcos'altro che è cambiato, se prima funzionava.
Non è esatto. Lo sarebbe se tutte le email fossero generate allo stesso modo.
Visto il problema, dove mi consigli di porre attenzione?Non è esatto. Lo sarebbe se tutte le email fossero generate allo stesso modo.