Commit 07d4a77b authored by Laurent's avatar Laurent
Browse files

hotline #102321 newsletter subscription : do not send temporary password

parent cb3241c9
Pipeline #8991 passed with stage
in 45 minutes and 50 seconds
- ticket #102321 : Inscription à la newsletter : amélioration de la conformité RGPD
\ No newline at end of file
......@@ -9,16 +9,10 @@
<?php echo $this->_('Celui-ci vous permet de vous connecter en temps qu\'invité et de vous désincrire de la newsletter.');?>
<?php echo $this->_('Votre identifiant: ') . $this->user->getLogin();?>
<?php echo $this->_('Votre mot de passe: ') . $this->user->getPassword();?>
<?php echo $this->_('Pour valider l\'abonnement, merci de cliquer sur le lien suivant:');?>
<?php echo $this->absoluteUrl(['module' => 'opac',
'controller' => 'auth',
'action' => 'newsletter-active-user',
......
......@@ -72,11 +72,7 @@ abstract class ZendAfi_View_Helper_Filters_Element extends ZendAfi_View_Helper_B
* @param $settings Class_FilterSettings
*/
public function render($settings) {
$this->_active_filters = $settings->getActiveFilters();
$this->_url_params = $settings->getUrlParams();
$this->_model_label = $settings->getModelLabel();
$this->_available_filters = $settings->getAvailableFilters();
$this->setSettings($settings);
$html = $this->_getFilterStrategy()->render($settings);
return $this->_tag('li', $html, ['class' => $this->_filter_key,
......@@ -95,7 +91,7 @@ abstract class ZendAfi_View_Helper_Filters_Element extends ZendAfi_View_Helper_B
}
public function init($settings) {
public function setSettings($settings) {
$this->_settings = $settings;
$this->_active_filters = $settings->getActiveFilters();
$this->_url_params = $settings->getUrlParams();
......
......@@ -43,6 +43,6 @@ class Intonation_View_Filters_Render extends ZendAfi_View_Helper_BaseHelper {
protected function _getFilterRenderer($filter, $settings) {
return ZendAfi_View_Helper_Filters_Element::forFilter($filter)
->setView($this->view)
->init($settings);
->setSettings($settings);
}
}
......@@ -2200,8 +2200,8 @@ class AuthControllerPostRegisterNewsletterDailyNewsTest extends AuthControllerNo
/** @test */
public function mailShouldContainsAccountPassword() {
$this->assertContains('Votre mot de passe: ', $this->getSentMailContent());
public function mailShouldNotContainsAccountPassword() {
$this->assertNotContains('mot de passe: ', $this->getSentMailContent());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment