php - Login with SSL activated with cakephp? -


i have activate ssl app , going well... well, exept login. impossible login app. here form code used work nude http :

  <div class="users form">     <div class="form-login-box">       <?php echo $this->session->flash('auth'); ?>       <?php echo $this->form->create('user', array(         'class' => 'form-login',         'inputdefaults' => array(           'label' => false          )       )); ?>       <fieldset>         <?php echo $this->form->input('username', array(           'class' => 'form-login-username',           'placeholder' => __('login')         ));         echo $this->form->input('password', array(           'class' => 'form-login-password',           'placeholder' => __('password')         ));         ?>       </fieldset>       <input type="submit" value="<?php echo __('login') ?>" class="form-login-submit">     </div>   </div> 

and controller :

  public function login() {     if ($this->request->is('post')) {       if ($this->auth->login()) {         return $this->redirect($this->auth->redirecturl());       } else {         $this->session->setflash(__('username or password incorrect'), 'default', array('class' => 'authmessage-error'), 'auth');       }     }   } 

it looks not closing form cake way. try this.

replace

<input type="submit" value="<?php echo __('login') ?>" class="form-login-submit"> 

with

<?php echo $this->form->end('submit'); ?> 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -