]> wagnertech.de Git - timetracker.git/blobdiff - password_reset.php
Siwtched to using isPost() function
[timetracker.git] / password_reset.php
index 52e268ca868484e81f08d88ca288db9f10a346c4..d67372c524f22186a1c4b869beea92e473877ce8 100644 (file)
@@ -40,7 +40,7 @@ $form = new Form('resetPasswordForm');
 $form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'login','style'=>'width: 300px;'));
 $form->addInput(array('type'=>'submit','name'=>'btn_submit','value'=>$i18n->getKey('button.reset_password')));
 
-if ($request->getMethod() == 'POST') {
+if ($request->isPost()) {
   $cl_login = $request->getParameter('login');
 
   // Validate user input.