Hi Everyone,
I am using Login extra for login and register user in modx site. I have one problem while working with it in instant version of modx revo.
I have a form in which Agent can add the details of his client.
My requirement :
- Agent can register in site and also add multiple client in his form. Agent May fill client name and client Email address.
Auto generate password would be sent to all client whose email address are filled by agent.
After than client can be Login and username with password which sent on his mail address.
Is this possible with register call in login extra ? Or
Anything else is available which can meet my condition.
[ed. note: vinodjoshi6219 last edited this post 12 years, 6 months ago.]
Arkalp.com
-
☆ A M B ☆
- 24,524 Posts
I would imagine you would need a custom post-hook to register the extra users and email them their login credentials. The post-hook could just be a loop with a runSnippet wrapper for the Register snippet itself, passing it the details for each extra user in turn.
-
☆ A M B ☆
- 24,524 Posts
Hi sottwell
I have read thread which you have shared. Right now i am using runSnippet and call Register snippet in it.
I am not able to pass value to register snippet in runsnippet.
Find my code in post hook
<?php
echo "<pre>";
print_r($_REQUEST);
echo "
";
echo $userName = $_REQUEST['playername'];
echo $password = $_REQUEST['playerpassword'];
echo $email = $_REQUEST['playeremail'];
$properties = array(
'usernameField' = 'playername',
'username' = $userName,
'passwordField' = 'playerpassword',
'password' = $password,
'emailField' = 'playeremail',
'email' = $email;
'activationResourceId' = '78',
'generatePassword'='1',
'submittedResourceId' = '68',
'activationEmailTpl' = 'Tournament_coach_register_email',
'activationEmailSubject' = 'Veuillez activer votre compte',
);
$modx->runSnippet('Register', $properties);
[ed. note: vinodjoshi6219 last edited this post 12 years, 6 months ago.]
Arkalp.com
Still waiting for an answer on this one - Anyone had a similar issue and have a solution ?
Arkalp.com
-
☆ A M B ☆
- 24,524 Posts
Those were just some ideas on how it could be done. I've never actually done anything like that.