mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
263f09a94c
commit
f7324e73a3
@ -277,7 +277,7 @@ class User
|
|||||||
public function setEmail($mail)
|
public function setEmail($mail)
|
||||||
{
|
{
|
||||||
if (filter_var($mail, FILTER_VALIDATE_EMAIL)) {
|
if (filter_var($mail, FILTER_VALIDATE_EMAIL)) {
|
||||||
$this->mail = $mail;
|
$this->email = $mail;
|
||||||
} else {
|
} else {
|
||||||
throw new InvalidArgumentException("Invalid mail given for user $this->username: $mail");
|
throw new InvalidArgumentException("Invalid mail given for user $this->username: $mail");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user