@@ -160,6 +160,8 @@ class LuticateUsersBusiness extends LuBusiness {
public static function edit($user_id, $firstname, $lastname, $email)
{
$user = self::checkUserId($user_id);
+ if (!filter_var($email, FILTER_VALIDATE_EMAIL))
+ self::badInput("Invalid email address");
$user->setEmail($email);
$user->setFirstname($firstname);
$user->setLastname($lastname);