Mailaccept need mail address (add domain)
This commit is contained in:
parent
fdfd41c754
commit
f1bee0b9e3
|
@ -98,6 +98,12 @@ class FormController {
|
||||||
,'mailaccept' => array('filter' => FILTER_DEFAULT, 'flags' => FILTER_FORCE_ARRAY)
|
,'mailaccept' => array('filter' => FILTER_DEFAULT, 'flags' => FILTER_FORCE_ARRAY)
|
||||||
), true);
|
), 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(); }
|
if (!empty(self::$form['password'])) { self::filterPassword(); }
|
||||||
|
|
||||||
unset($_POST);
|
unset($_POST);
|
||||||
|
|
Loading…
Reference in New Issue