Redo 'Configure client' page

This commit is contained in:
Joe Haig
2016-08-14 16:40:59 +00:00
parent a87d7ee869
commit e953e68556
4 changed files with 158 additions and 185 deletions

View File

@@ -17,7 +17,12 @@ function CSRFToken() {
*
*/
function CSRFValidate() {
return hash_equals($_POST['csrf_token'], $_SESSION['csrf_token']);
if ( hash_equals($_POST['csrf_token'], $_SESSION['csrf_token']) ) {
return true;
} else {
error_log('CSRF violation');
return false;
}
}
/**