X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/1fad211ab12fc66117094e33425f8414fccd2cfa..a7ba11adfecf6cb906749efe5abce688363aef07:/password_change.php diff --git a/password_change.php b/password_change.php index 9302ef04..84e8f6ae 100644 --- a/password_change.php +++ b/password_change.php @@ -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'));