1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-24 05:08:46 +02:00

Desgn "Mon compte" & mini-corrections

This commit is contained in:
galaxyoyo
2019-09-24 23:44:38 +02:00
parent b6434cafb8
commit 90952ecb7c
13 changed files with 158 additions and 125 deletions

View File

@ -9,7 +9,7 @@ $user = $_SESSION["user"];
$has_error = false;
$error_message = null;
if (isset($_POST["update_team"])) {
if (isset($_POST["update_account"])) {
$my_account = new MyAccount($_POST);
try {
$my_account->makeVerifications();
@ -21,7 +21,7 @@ if (isset($_POST["update_team"])) {
}
}
if (isset($_POST["submitted_password"])) {
if (isset($_POST["update_password"])) {
$new_password = new NewPassword($_POST);
try {
$new_password->makeVerifications();
@ -59,6 +59,8 @@ class MyAccount
foreach ($keys as $key)
$this->$key = $this->$key != null && $this->$key != "" ? $this->$key : $this->user->$key;
$this->receive_animath_mails = $this->receive_animath_mails == "on";
}
public function makeVerifications()