X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fforms%2FLogin.php;h=33fdfe7a39efdc6560a2b549ced0115278f7cc75;hb=76f6e080505c81ded0911b444eb62e39435eb8a1;hp=b42f8ba0ae6c23de878428dba013f4523cc9363f;hpb=190fd621df4920c56a422c03663874cddaa67d64;p=syj.git diff --git a/application/forms/Login.php b/application/forms/Login.php index b42f8ba..33fdfe7 100644 --- a/application/forms/Login.php +++ b/application/forms/Login.php @@ -1,5 +1,5 @@ __("user"), 'required' => true)); $pass = array('Password', 'login_password', array( 'label' => __("password"))); - $this->setMainElements(array($user, $pass)) + ->addElement('Checkbox', 'login_rememberme', array( 'label' => __("remember me"), 'checked' => true)) ->addElement('Hidden', 'login_geom_id', array( 'decorators' => array('ViewHelper'))); - $currentUri = Zend_Controller_Front::getInstance()->getRequest()->getRequestUri(); - if (strpos($currentUri, '?') !== false) { - $currentUri = strstr($currentUri, '?', true); - } + $currentUri = $this->getView()->UriPath(true); $href = $this->getView()->addParamToUrl('newpwd', 'redirect', $currentUri, true); $anchor = $this->getView()->Anchor($href,