adding code to create accounts with quotas (default being 200m)
This commit is contained in:
@ -25,11 +25,13 @@ class UserHooks {
|
||||
$uid = $user->getUID();
|
||||
$name = $user->getDisplayName();
|
||||
$email_suffix = $this->config->getEmailAddressSuffix();
|
||||
$quota = $this->config->getEmailQuotaMB();
|
||||
$newuser = array(
|
||||
'userid' => $uid,
|
||||
'password' => $password,
|
||||
'name' => $name,
|
||||
'email' => $uid . $email_suffix
|
||||
'email' => $uid . $email_suffix,
|
||||
'quota' => $quota // in MB
|
||||
);
|
||||
$this->logger->warning("newuser:". print_r($newuser,1));
|
||||
if($this->createEmailAccount($newuser)) {
|
||||
|
Reference in New Issue
Block a user