Edit notice token error corrected
This commit is contained in:
parent
dbceafd606
commit
dfdfa1f496
6
TODO
6
TODO
@ -1,7 +1,10 @@
|
|||||||
Issues :
|
Issues :
|
||||||
========
|
========
|
||||||
* Check box on invoice form when modifying guests
|
|
||||||
* Regenerate token
|
* Regenerate token
|
||||||
|
* Global paybacks
|
||||||
|
* Test fr
|
||||||
|
* Paybacks and user deletion
|
||||||
|
* Minify CSS / JS
|
||||||
|
|
||||||
Improvements :
|
Improvements :
|
||||||
==============
|
==============
|
||||||
@ -9,5 +12,4 @@ Improvements :
|
|||||||
* Search invoice
|
* Search invoice
|
||||||
* JSON output => do index view
|
* JSON output => do index view
|
||||||
* API
|
* API
|
||||||
* cf TODO in files
|
|
||||||
* README file
|
* README file
|
||||||
|
@ -337,6 +337,7 @@
|
|||||||
|
|
||||||
case 'edit_notice':
|
case 'edit_notice':
|
||||||
if(isset($_POST['notice'])) {
|
if(isset($_POST['notice'])) {
|
||||||
|
$tpl->assign('notice', htmlspecialchars($_POST['notice']));
|
||||||
if(check_token(600, 'settings')) {
|
if(check_token(600, 'settings')) {
|
||||||
setNotice($_POST['notice']);
|
setNotice($_POST['notice']);
|
||||||
|
|
||||||
@ -353,6 +354,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$tpl->assign('show_settings', false);
|
$tpl->assign('show_settings', false);
|
||||||
|
$tpl->assign('token', generate_token('settings'));
|
||||||
$tpl->draw('settings');
|
$tpl->draw('settings');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user