tbrehm
2008-11-17 2c8f94001b7d1361d504e8f381d5cb11a46249c0
interface/web/tools/user_settings.php
@@ -64,6 +64,7 @@
            
            // Importing ID
                $this->id = $_SESSION['s']['user']['userid'];
            $_POST['id'] = $_SESSION['s']['user']['userid'];
                if(count($_POST) > 1) {
                        $this->dataRecord = $_POST;
@@ -72,12 +73,16 @@
                        $this->onShow();
                }
        }
   function onInsert() {
      die('No inserts allowed.');
   }
      
   function onBeforeUpdate() {
      global $app, $conf;
      
      if($_POST['passwort'] != $_POST['passwort2']) {
         $app->tform->errorMessage = 'The passwords in the second password field does not match the first password.';
         $app->tform->errorMessage = $app->tform->lng('password_mismatch');
      }
      
   }