Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send password to new users #22991

Closed
Glassback opened this issue Mar 9, 2016 · 5 comments
Closed

Send password to new users #22991

Glassback opened this issue Mar 9, 2016 · 5 comments

Comments

@Glassback
Copy link

Hi guys,

When creating a new user, I can check the checkbox "Send e-mail". After creating a user, the e-mail containing the connection informations will be sent to the new user.

I'm trying to modify the file core/settings/templates/email.new_user.php to add the password field.

I change

15. print_unescaped($l->t('Hey there,<br><br>just letting you know that you now have an %s account.<br><br>Your username: %s<br>Access it: <a href="%s">%s</a><br><br>', array($theme->getName(), $_['username'], $_['url'], $_['url'])));

To

print_unescaped($l->t('Hey there,<br><br>just letting you know that you now have an %s account.<br><br>Your username: %s<br>Your password: %s<br>Access it: <a href="%s">%s</a><br><br>', array($theme->getName(), $_['username'],$_['password'], $_['url'], $_['url'])));

When the user receive the e-mail, the password field is blank... can someone help me?

Thanks

@Glassback Glassback changed the title Send generated password to new users Send password to new users Mar 9, 2016
@LukasReschke LukasReschke added this to the backlog milestone Mar 9, 2016
@LukasReschke
Copy link
Member

When the user receive the e-mail, the password field is blank... can someone help me?

You can't do it simply like that. You also need to modify

// data for the mail template
$mailData = array(
'username' => $username,
'url' => $this->urlGenerator->getAbsoluteURL('/')
);

@ghost
Copy link

ghost commented Mar 9, 2016

Shouldn't be development specific stuff asked at the developers mailinglist instead of the bugtracker?

If this is also a feature request its also a duplicate of #17398

@LukasReschke
Copy link
Member

Shouldn't be development specific stuff asked at the developers mailinglist instead of the bugtracker?

Yes.

If this is also a feature request its also a duplicate of #17398

Thanks 🚀 . I thought it was but couldn't find the original issue 🙈

@Glassback
Copy link
Author

Thanks @LukasReschke for the quick aswer. Problem solved.

@RealRancor It's also a feature request, sory for the duplicate

@lock
Copy link

lock bot commented Aug 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants