Skip to content

Commit 4ba4373

Browse files
committed
Added email sending upon user & subscription creation
1 parent b71bc13 commit 4ba4373

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

akeebasubs/akeebasubs/subscription.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,12 @@ private function getSubscriberUserid($newuser) {
211211
return $uid;
212212
} else {
213213
$uid = 0;
214+
JLoader::import('joomla.application.component.helper');
214215
$password_clear = JUserHelper::genRandomPassword();
215216
$salt = JUserHelper::genRandomPassword(32);
216217
$crypt = JUserHelper::getCryptedPassword($password_clear, $salt);
217-
$defaultUserGroup = 2;
218+
$usersConfig = JComponentHelper::getParams( 'com_users' );
219+
$defaultUserGroup = $usersConfig->get( 'new_usertype', 2 );
218220

219221
$password = "$crypt:$salt";
220222
$instance = JUser::getInstance();

0 commit comments

Comments
 (0)