Show user password in email template
-
- Lieutenant Commander (LCDR)
- Posts: 102
- Joined: Wed Apr 02, 2008 11:00 am
- Location: Stockholm, Sweden
- Contact:
Show user password in email template
Hi!
I would like to create a email template to be used to send out to my custumers password when they have forget it.
I dont want to use the reset email template!
My problem is I cant get the nvelocity zyntax to work in the emailtemplate.
I have tried like this to write out the password without success:
${User.Password}!
$User.Password!
${Order.Password}!
$Order.Password!
Anyone who can help me to get the right zyntax?
Best regards, Thomas
I would like to create a email template to be used to send out to my custumers password when they have forget it.
I dont want to use the reset email template!
My problem is I cant get the nvelocity zyntax to work in the emailtemplate.
I have tried like this to write out the password without success:
${User.Password}!
$User.Password!
${Order.Password}!
$Order.Password!
Anyone who can help me to get the right zyntax?
Best regards, Thomas
-
- Lieutenant Commander (LCDR)
- Posts: 102
- Joined: Wed Apr 02, 2008 11:00 am
- Location: Stockholm, Sweden
- Contact:
Re: Show user password in email template
OK, I found the answear, its not possible...
viewtopic.php?f=42&t=7404&p=30958&hilit ... ord#p30958
Since I autogenerate password for my customers it gives me problem, I guess I have to store the password uncrypted in a custom fiels somewhere to be able to send it out.
viewtopic.php?f=42&t=7404&p=30958&hilit ... ord#p30958
Since I autogenerate password for my customers it gives me problem, I guess I have to store the password uncrypted in a custom fiels somewhere to be able to send it out.
Re: Show user password in email template
Yes you can place it in some file or may create some db table
Re: Show user password in email template
Able has a place to store user specific details: UserSettings
Here's a little snippet for adding a name/value pair like that:
then you can access with:
Here's a little snippet for adding a name/value pair like that:
Code: Select all
string query = String.Format("UserId = {0} and FieldName = '{1}' and FieldValue = '{2}'", user.UserId, "PlainTextPassword", strPlainTextPassword);
if (UserSettingDataSource.CountForCriteria(query) == 0)
{
UserSetting us = new UserSetting();
us.UserId = user.UserId;
us.FieldName = "PlainTextPassword";
us.FieldValue = strPlainTextPassword;
us.Save();
}
Code: Select all
UserSettingCollection usersettings = new UserSettingCollection();
usersettings = UserSettingDataSource.LoadForUser(user.UserId);
foreach (UserSetting setting in usersettings)
{
if ((setting.FieldName == "PlainTextPassword")
...
Nick Cole
http://www.ethofy.com
http://www.ethofy.com
Re: Show user password in email template
Yes User Settings is very good location to store user related information, you can use it as well.
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Show user password in email template
Not exactly related to this,but would the user settings be a better place to store a customer's access to certain products rather than putting them into a particular group? For example, only certain users can view certain products.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: Show user password in email template
Yes it could be used