]> wagnertech.de Git - timetracker.git/blobdiff - password_reset.php
Siwtched to using isPost() function
[timetracker.git] / password_reset.php
index de0a02c1a35a51066b4f9af67ae089ee9fb23146..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.
@@ -110,7 +110,7 @@ if ($request->getMethod() == 'POST') {
       $smarty->assign('result_message', $res ? $i18n->getKey('form.reset_password.message') : $i18n->getKey('error.mail_send'));
     }
   }
-}
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.resetPasswordForm.login.focus()"');