forked from ZwiiCMS-Team/ZwiiCMS
Correction erreur d'édition d'un user
This commit is contained in:
parent
ef0e40af72
commit
b08238a664
@ -132,7 +132,8 @@ class user extends common {
|
|||||||
* Édition
|
* Édition
|
||||||
*/
|
*/
|
||||||
public function edit() {
|
public function edit() {
|
||||||
if ($this->getUrl(3) !== $_SESSION['csrf']) {
|
if ($this->getUrl(3) !== $_SESSION['csrf'] &&
|
||||||
|
$this->getUrl(4) !== $_SESSION['csrf']) {
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'redirect' => helper::baseUrl() . 'user',
|
'redirect' => helper::baseUrl() . 'user',
|
||||||
|
Loading…
Reference in New Issue
Block a user