News:

Wondering if this will always be free?  See why free is better.

Main Menu

Remove password from registration emails?

Started by Force Flow, May 31, 2009, 07:16:09 PM

Previous topic - Next topic

Force Flow

I just installed SMF 1.1.9 and was wondering how I could prevent the password from being sent in registration emails?  I'm not comfortable with sending that out in plain text to users, as I was never comfortable seeing that when registering on other forums.

JBlaze

Hello Force Flow, and welcome to SMF!

Edit the following file.

/Themes/default/languages/Login.english.php
Code (find) Select
$txt['register_immediate_message'] = 'You are now registered with an account at ' . $context['forum_name'] . ', %1$s! Your account's username is %2$s and its password is %3$s. You may change your password after you login by going to your profile, or by visiting this page after you login:' . "\n\n" . $scripturl . '?action=profile' . "\n\n" . $txt[130];
Code (replace with) Select
$txt['register_immediate_message'] = 'You are now registered with an account at ' . $context['forum_name'] . ', %1$s! Your account's username is %2$s. You may change your password after you login by going to your profile, or by visiting this page after you login:' . "\n\n" . $scripturl . '?action=profile' . "\n\n" . $txt[130];

Code (find) Select
$txt['register_activate_message'] = 'You are now registered with an account at ' . $context['forum_name'] . ', %1$s!' . "\n\n" . 'Your account's username is %2$s and its password is %3$s (which can be changed later.)' . "\n\n" . 'Before you can login, you first need to activate your account. To do so, please follow this link:' . "\n\n" . '%5$s' . "\n\n" . 'Should you have any problems with activation, please use the code "%4$s".' . "\n\n" . $txt[130];
Code (replace with) Select
$txt['register_activate_message'] = 'You are now registered with an account at ' . $context['forum_name'] . ', %1$s!' . "\n\n" . 'Your account's username is %2$s (which can be changed later.)' . "\n\n" . 'Before you can login, you first need to activate your account. To do so, please follow this link:' . "\n\n" . '%5$s' . "\n\n" . 'Should you have any problems with activation, please use the code "%4$s".' . "\n\n" . $txt[130];

Code (find) Select
$txt['register_pending_message'] = 'Your registration request at ' . $context['forum_name'] . ' has been received, %1$s.' . "\n\n" . 'The username you registered with was %2$s and the password was %3$s.' . "\n\n" . 'Before you can login and start using the forum, your request will be reviewed and approved. When this happens, you will receive another email from this address.' . "\n\n" . $txt[130];
Code (replace with) Select
$txt['register_pending_message'] = 'You are now registered with an account at ' . $context['forum_name'] . ', %1$s! Your account's username is %2$s. You may change your password after you login by going to your profile, or by visiting this page after you login:' . "\n\n" . $scripturl . '?action=profile' . "\n\n" . $txt[130];
Jason Clemons
Former Team Member 2009 - 2012


Mike Bobbitt

Things look quite different in SMF 2, the password field is no longer available as a %3$s string... you can change the text around the password, but not remove it.

Anyone know how to do that?


Thanks
Mike

claydoh

I have made the edits to /Themes/default/languages/Login.english.php
and yet the password still in included in the activation mail

Using 1.1.11

Cory94bailly

Quote from: claydoh on December 29, 2009, 08:56:02 PM
I have made the edits to /Themes/default/languages/Login.english.php
and yet the password still in included in the activation mail

Using 1.1.11

Are you using another theme? If so, check that theme's folder for a Login.english.php.

claydoh

Quote from: Cory94bailly on December 29, 2009, 11:27:24 PM
Are you using another theme? If so, check that theme's folder for a Login.english.php.

I am using the default theme

claydoh

I found the solution:
you also have to edit /Themes/default/languages/Login.english-utf8.php as well (or perhaps instead of?)

Advertisement: