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