Corrected bug in 4be2369. See #10
Corrected bug in 4be2369. See #10

--- a/views/user/add.php
+++ b/views/user/add.php
@@ -23,7 +23,7 @@
 BTMain::unsetSessVar('FormToken');
 
 
-  if ($sessvar != BTMain::getVar('FormToken')){
+  if ((BTMain::getVar('addUserSubmitted'))&&($sessvar != BTMain::getVar('FormToken'))){
   echo "<div class='alert alert-error'>Invalid Form Token</div>";
   $process = false;
   }

--- a/views/user/changePass.php
+++ b/views/user/changePass.php
@@ -20,7 +20,7 @@
 BTMain::unsetSessVar('FormToken');
 
 
-  if ($sessvar != BTMain::getVar('FormToken')){
+  if ((BTMain::getVar('ChangePassSubmitted'))&&($sessvar != BTMain::getVar('FormToken'))){
   echo "<div class='alert alert-error'>Invalid Form Token</div>";
   $process = false;
   }

--- a/views/user/edit.php
+++ b/views/user/edit.php
@@ -24,7 +24,7 @@
 BTMain::unsetSessVar('FormToken');
 
 
-  if ($sessvar != BTMain::getVar('FormToken')){
+  if ((BTMain::getVar('editUserSubmitted'))&&($sessvar != BTMain::getVar('FormToken'))){
   echo "<div class='alert alert-error'>Invalid Form Token</div>";
   $process = false;
   }