make it possible to modify personal user data fields

This commit is contained in:
bence committed 2023-04-09 02:55:10 +02:00
1 parent df3bf89079
commit 749b93e3af
2 files changed
+10 -1

No files matched your search

+4
View File
@@ -181,6 +181,10 @@ class UserController implements ISecured
$user->setPlainPassword($newPassword);
}
$user->setNickname($this->request->post('nickname'));
$user->setPhone($this->request->post('phone'));
$user->setIdNumber($this->request->post('id_number'));
$this->pdm->saveToDb($user);
$this->request->session()->delete('authenticated_with_google_until');