Removed token from fields. Needs added to #253.

pull/253/head
Levi 2016-01-30 15:41:30 -05:00
parent 81bef8d973
commit 142aae3cd1
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ class UserController extends AbstractController {
if (!hash_equals($_POST['token'], $_SESSION['token'])) {
return $this->executeIndex();
}
$fields = array('name', 'user_name', 'password', 'password_repeat', 'level', 'mobile', 'pushover_key', 'pushover_device', 'email', 'token');
$fields = array('name', 'user_name', 'password', 'password_repeat', 'level', 'mobile', 'pushover_key', 'pushover_device', 'email');
$clean = array();
foreach($fields as $field) {
if(isset($_POST[$field])) {