Mailaccept need mail address (add domain)

This commit is contained in:
Victor LABORIE 2019-01-10 14:32:34 +01:00
parent fdfd41c754
commit f1bee0b9e3
1 changed files with 6 additions and 0 deletions

View File

@ -98,6 +98,12 @@ class FormController {
,'mailaccept' => array('filter' => FILTER_DEFAULT, 'flags' => FILTER_FORCE_ARRAY)
), true);
self::$form['mailaccept'] = array_map(function($value) {
if (!empty($value)) {
return $value.'@'.self::$form['domain'];
}
}, self::$form['mailaccept']);
if (!empty(self::$form['password'])) { self::filterPassword(); }
unset($_POST);