Reworked MailConfirmation lang vars and added newones

pull/2487/head
José Loguercio 8 years ago
parent 9af6dd0bc6
commit e5288d9e86
  1. 2
      main/auth/resend_confirmation_mail.php
  2. 2
      main/inc/lib/template.lib.php
  3. 4
      main/inc/lib/usermanager.lib.php

@ -16,7 +16,7 @@ if ($form->validate()) {
$thisUser = Database::getManager()->getRepository('ChamiloUserBundle:User')->findBy(['username' => $values['user']]);
UserManager::sendUserConfirmationMail($thisUser);
Display::addFlash(Display::return_message(get_lang('EmailSend')));
Display::addFlash(Display::return_message(get_lang('EmailSent')));
header('Location: '.api_get_path(WEB_PATH));
exit;
}

@ -1392,7 +1392,7 @@ class Template
if (api_get_setting('allow_registration') === 'confirmation') {
$message = sprintf(
get_lang('YourAccountIsInactiveBecauseYouDoesntConfirmItCheckYourMailAndFollowTheInstructionsOrClickHereToReSendEmail'),
get_lang('YourAccountIsInactiveBecauseYouDoesntConfirmItCheckYourEmailAndFollowTheInstructionsOrClickTheFollowingLinkXToReSendTheEmail'),
Display::url(get_lang('ReSendConfirmationMail'), api_get_path(WEB_PATH) . 'main/auth/resend_confirmation_mail.php'));
}
break;

@ -5696,9 +5696,9 @@ SQL;
Database::getManager()->flush();
$url = api_get_path(WEB_CODE_PATH).'auth/user_mail_confirmation.php?token='.$uniqueId;
$mailSubject = get_lang('InscriptionConfirmation');
$mailSubject = get_lang('RegistrationConfirmation');
$mailBody = sprintf(
get_lang('ToCompleteYourPlatformInscriptionYouNeedToConfirmYourAccountClickingTheFollowingLink'),
get_lang('ToCompleteYourPlatformRegistrationYouNeedToConfirmYourAccountByClickingTheFollowingLinkX'),
$url
);

Loading…
Cancel
Save