By gökhan on Friday, 18 April 2014
Posted in General Issues
Replies 2
Likes 0
Views 642
Votes 0
Hi Guys,

I am trying to customise registration mail templates. And i realised something,

1- When an user register to a site, moderation activated, firstly user gets aprovals mail with username/email + pass
2- If admin aprove user aplication, user gets aproved mail with username/email and a login button (without pass)

I think we are going wrong way! why? Because user will need a pass after aplication aproved, so password should be in approved mail (cause pass generated randomly with Facebook registration) or both .

So i copied these codes below from aprovel mail template and paste them to aproved mail temlate, but i got pasword: (empty) in aproved mail, what i am missing ? Please look at screenshot attached

<table align="center" width="380" style="margin-top:-35px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="color:#888;border-top: 1px solid #ebebeb;padding: 15px 20px; background-color:#f8f9fb;font-size:13px;text-align:center">
<?php echo JText::_( 'COM_EASYSOCIAL_EMAILS_USERNAME' ); ?>: <?php echo $username;?>
</td>
</tr>
<?php if( $this->config->get( 'registrations.email.password' ) ){ ?>
<tr>
<td style="color:#888;border-top: 1px solid #ebebeb;padding: 15px 20px; background-color:#f8f9fb;font-size:13px;text-align:center">
<?php echo JText::_( 'COM_EASYSOCIAL_EMAILS_PASSWORD' ); ?>: <?php echo $password;?>
</td>
</tr>
<?php } ?>
</table>
Also This line sould be removed from aproved mail like aprovels mails you removed before , because, user never accessed his/her profil settings to set email settings;) before aplication aproved
·
Friday, 18 April 2014 05:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

1. The reason why the password can only be sent out during now registration and not approved is because, technically, we do not have the ability to retrieve the password during admin's approval. The system only have 1 chance to retrieve the password as clear text, and that is during registration, and we do not store that password any where to protect user's privacy. And there is no way to reverse engineer the encrypted password stored in the database as well, hence during admin approving the account, at this step we actually do not get to access the user's password any more.

2. During Facebook registration, if the user did not enter any password, although a random password is generated, but the user will not need any password to log in. The randomly generated password is only to work with core Joomla's logic.

3. Which email contains this? I've did a trace and all the email that contains this, does make sense to have this section. If the user's account is already approved, regardless of whether if he/she logged in before, this section needs to be there on user's right purposes.
·
Friday, 18 April 2014 11:54
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post