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:
@ -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()
|
||||
|
Reference in New Issue
Block a user