From d4fa8d90543e4889b8c9f36adfb33997f393b398 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 18 Feb 2020 16:10:18 +0100 Subject: [PATCH] =?UTF-8?q?Les=20infos=20des=20respos=20l=C3=A9gaux=20n'?= =?UTF-8?q?=C3=A9taient=20pas=20sauvegard=C3=A9s=20...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server_files/controllers/inscription.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server_files/controllers/inscription.php b/server_files/controllers/inscription.php index 99adfe4..9f2ebbb 100644 --- a/server_files/controllers/inscription.php +++ b/server_files/controllers/inscription.php @@ -87,10 +87,10 @@ class NewUser global $DB, $YEAR; $req = $DB->prepare("INSERT INTO `users`(`email`, `pwd_hash`, `confirm_email`, `surname`, `first_name`, `birth_date`, `gender`, - `address`, `postal_code`, `city`, `country`, `phone_number`, `school`, `class`, `role`, `description`, `year`) - VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"); + `address`, `postal_code`, `city`, `country`, `phone_number`, `school`, `class`, `role`, `description`, `responsible_name`, `responsible_phone`, `responsible_email`, `year`) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"); $req->execute([$this->email, password_hash($this->password, PASSWORD_BCRYPT), $this->confirm_email_token, $this->surname, $this->first_name, $this->birth_date, $this->gender, $this->address, - $this->postal_code, $this->city, $this->country, $this->phone_number, $this->school, SchoolClass::getName($this->class), Role::getName($this->role), $this->description, $YEAR]); + $this->postal_code, $this->city, $this->country, $this->phone_number, $this->school, SchoolClass::getName($this->class), Role::getName($this->role), $this->description, $this->responsible_name, $this->responsible_phone, $this->responsible_email, $YEAR]); Mailer::sendRegisterMail($this); }