]> wagnertech.de Git - timetracker.git/blobdiff - password_change.php
Siwtched to using isPost() function
[timetracker.git] / password_change.php
index 9302ef04e436b505367a9791e7aac9f8f4b29c19..84e8f6aeb3edf111080a464267bf5a60af0cf1ec 100644 (file)
@@ -64,7 +64,7 @@ $form->addInput(array('type'=>'text','maxlength'=>'120','name'=>'password2','asp
 $form->addInput(array('type'=>'hidden','name'=>'ref','value'=>$cl_ref));
 $form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->getKey('button.save')));
 
-if ($request->getMethod() == 'POST') {
+if ($request->isPost()) {
   // Validate user input.
   if (!ttValidString($cl_password1)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.password'));
   if (!ttValidString($cl_password2)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.confirm_password'));