csrf user
This commit is contained in:
parent
43b084369e
commit
8397e5eb0c
@ -157,11 +157,13 @@ class user extends common
|
||||
]);
|
||||
}
|
||||
// Jeton incorrect
|
||||
elseif ($this->getUrl(3) !== $_SESSION['csrf']) {
|
||||
elseif (
|
||||
$this->checkCSRF()
|
||||
) {
|
||||
// Valeurs en sortie
|
||||
$this->addOutput([
|
||||
'redirect' => helper::baseUrl() . 'user',
|
||||
'notification' => helper::translate('Action interdite')
|
||||
'notification' => helper::translate('Jeton incorrect')
|
||||
]);
|
||||
}
|
||||
// Bloque la suppression de son propre compte
|
||||
@ -190,7 +192,7 @@ class user extends common
|
||||
public function edit()
|
||||
{
|
||||
if (
|
||||
$this->getUrl(3) !== $_SESSION['csrf']
|
||||
$this->checkCSRF()
|
||||
) {
|
||||
|
||||
// Valeurs en sortie
|
||||
|
Loading…
x
Reference in New Issue
Block a user