Hi Guys,
How can I add the username and password inside the customised welcome message that is sent to the user once they register?
Regards,
Hansi
Hi Guys,
How can I add the username and password inside the customised welcome message that is sent to the user once they register?
Regards,
Hansi
me look for that too
the code was there [preinstalled on admin/email_welcome.php] but not active for somehow. with the string tag [%s] defined from /includes/modules/create_account.php
im on my search for the code to make that run.
try compare the code on admin/email_welcome.php with drbyte's "add costumers from admin" module downloaded from zc-downloads page. that module works just fine. but i cant see their differences. perhaps on the [define] tag
btw what version are you??
yes true it was encrypted..
BUT..i swear the module i have said before can do such thing.
off course it was unsafe though the password you type to the form field in admin side was not in asterix. and that is something.
but again, if the the database was encrypted when DB connect, then it must be the password was sent by the form field directly to the welcome_email.php. not from database. thats make sense. no write-read-write process to the DB.
i dont know how to work the standard installation out. i am a newbie. but, as a webmaster of my small company i shoud find out.
duhh... this tiny important part of zen is killin me![]()
Is the name and passwd passed through the Session object? If this is the case, it looks like we could perhaps extract the name and passwd parameter from the Session Object parameter before it is saved (encrypted) to the database.
What do you think?
Hansi
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thank you very much Dr Byte for responding.
I believe that to include the password in the welcome email I would somehow have to insert some PHP code here (in the create_account module):
// add in regular email welcome text
$email_text .= "\n\n" . "password:" . $password . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_GV_CLOSURE;
$html_msg['EMAIL_MESSAGE_HTML'] = str_replace('\n','',EMAIL_TEXT);
$html_msg['EMAIL_CONTACT_OWNER'] = str_replace('\n','',EMAIL_CONTACT);
$html_msg['EMAIL_CLOSURE'] = nl2br(EMAIL_GV_CLOSURE);
How do I access the user name (e.g. $user or $_POST['user'])?
The customer's login name is their email address.
Do you really need to tell them their email address, when the email you're trying to send their password in is going to be sent TO that email address ?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
i think DrByte is absolutely right Hansi...
by the way, DrByte..thanks for the tips on this thread and the other "old" one which is something about admin was forbidden when creating new product.
at the bottom of htaccess file really works. i almost give up hope and shutdown the shopCode:SecFilterEngine Offand run back along the conventional way.
one more thing, the "add customer from admin" module can show the password. why shouldnt default zen do the same. is there any missing part of the defined section??. i try to compare both add_costumer file but got different result each of them. at my first try with the default, the word "your password blablabla...is..." didnt even show up in both html and text email welcome.