Dont send password via mail, rename nickname to username again

This commit is contained in:
Varakh 2018-05-15 21:51:24 +02:00
parent fdb67c8d15
commit f6c06c4470
2 changed files with 3 additions and 4 deletions

View file

@ -11,8 +11,8 @@ sign.up.flash.already_in_use_email_and_username: "%username%/%email% is already
sign.up.flash.already_in_use_email: "%email% is already in use." sign.up.flash.already_in_use_email: "%email% is already in use."
sign.up.flash.already_in_use_username: "%username% is already in use." sign.up.flash.already_in_use_username: "%username% is already in use."
sign.up.form.button: Sign up sign.up.form.button: Sign up
sign.up.form.username: Nickname: sign.up.form.username: Username:
sign.up.form.username.placeholder: nickname sign.up.form.username.placeholder: username
sign.up.form.email: Email (only used for one time email verification, not persisted further): sign.up.form.email: Email (only used for one time email verification, not persisted further):
sign.up.form.email.placeholder: xyz@domain.tld sign.up.form.email.placeholder: xyz@domain.tld
sign.up.form.password: Password: sign.up.form.password: Password:
@ -52,7 +52,6 @@ verification.mail.success.subject: "%server%: jabber account information"
verification.mail.success.body: | verification.mail.success.body: |
Hello %username%, Hello %username%,
you've verified your email address successfully and your jabber account on %server% has been created. you've verified your email address successfully and your jabber account on %server% has been created.
Your password is "%password%".
If you wish to delete your account, use %deleteCode% on the website. If you wish to delete your account, use %deleteCode% on the website.
Keep this mail safe! Keep this mail safe!
verification.mail.success.notify.subject: "%server%: user verified their account" verification.mail.success.notify.subject: "%server%: user verified their account"

View file

@ -90,7 +90,7 @@ final class VerificationAction
$mailer->FromName = getenv('mail_from_name'); $mailer->FromName = getenv('mail_from_name');
$mailer->addAddress($userAwaiting->email); $mailer->addAddress($userAwaiting->email);
$mailer->Subject = $this->translator->trans('verification.mail.success.subject', ['%server%' => getenv('site_xmpp_server_displayname')]); $mailer->Subject = $this->translator->trans('verification.mail.success.subject', ['%server%' => getenv('site_xmpp_server_displayname')]);
$mailer->Body = $this->translator->trans('verification.mail.success.body', ['%username%' => $userAwaiting->username, '%server%' => getenv('site_xmpp_server_displayname'), '%password%' => $userAwaiting->password, '%deleteCode%' => $userRegistered->delete_code]); $mailer->Body = $this->translator->trans('verification.mail.success.body', ['%username%' => $userAwaiting->username, '%server%' => getenv('site_xmpp_server_displayname'), '%deleteCode%' => $userRegistered->delete_code]);
$mailer->send(); $mailer->send();
$userAwaiting->delete(); $userAwaiting->delete();