Edit notice token error corrected

This commit is contained in:
Phyks 2013-09-26 17:36:59 +02:00
parent dbceafd606
commit dfdfa1f496
2 changed files with 6 additions and 2 deletions

6
TODO
View File

@ -1,7 +1,10 @@
Issues :
========
* Check box on invoice form when modifying guests
* Regenerate token
* Global paybacks
* Test fr
* Paybacks and user deletion
* Minify CSS / JS
Improvements :
==============
@ -9,5 +12,4 @@ Improvements :
* Search invoice
* JSON output => do index view
* API
* cf TODO in files
* README file

View File

@ -337,6 +337,7 @@
case 'edit_notice':
if(isset($_POST['notice'])) {
$tpl->assign('notice', htmlspecialchars($_POST['notice']));
if(check_token(600, 'settings')) {
setNotice($_POST['notice']);
@ -353,6 +354,7 @@
}
$tpl->assign('show_settings', false);
$tpl->assign('token', generate_token('settings'));
$tpl->draw('settings');
break;