Wrong data send using "Re-Send Signup Email".

Hi,

When the database has got "custom password" set or if the database was associated with the virtual-server using "Import Database" the "Re-Send Signup Email" feature sends an email with the wrong data. The re-sended email contains the data, which were set upon virtual-server creation.

Regards.

Status: 
Closed (fixed)

Comments

Ok, I see what you mean ... I'll fix this in the next Virtualmin release.

You can fix it now at System Settings -> Server Templates -> Default Settings -> Mail for domain -> Email message to send upon server creation, by changing the line

MySQL password:          ${PASS}

to :

${IF-MYSQL_PASS}
MySQL password:          ${MYSQL_PASS}
${ELSE-MYSQL_PASS}
MySQL password:          ${PASS}
${ENDIF-MYSQL_PASS}

Automatically closed -- issue fixed for 2 weeks with no activity.

Unfortunatly it doesn't work for me;-/ I'm getting mails with:

...
${IF-MYSQL_PASS}
Password:    ${MYSQL_PASS}
${ELSE-MYSQL_PASS}
Password:    password_here
${ENDIF-MYSQL_PASS}
...

The messages contains "if" statements.

Does the domain this happens for have MySQL enabled? And does it have a custom MySQL password?

1) Account with mysql enabled and default password:

...
login:    login_here
${IF-MYSQL_PASS}
pass:    ${MYSQL_PASS}
${ELSE-MYSQL_PASS}
pass:    pass_here
${ENDIF-MYSQL_PASS}
...

2) Account with mysql enabled and custom password:

...
login:    login_here
pass:    pass_here
...

This is how it looks.

Ok, I see the cause of this .. due to a Virtualmin bug, you can't use ${IF-MYSQL_PASS} like that.

I will fix this in the next release (version 3.78).

Automatically closed -- issue fixed for 2 weeks with no activity.