I have created a custom login page I have called it from cms page CMS PAGE account_login

<div class="container"> {{block type="core/template" template="customer/form/cms_login.phtml"}}</div>


<div class="login-form">
<form action="<?php echo Mage::getUrl('customer/account/loginPost'); ?>" method="post" id="login-form">
        <div class="form-group">
                <input type="text" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" id="email" class="form-control required-entry validate-email" title="<?php echo $this->__('Email Address') ?>" placeholder="<?php echo $this->__('Email Address') ?>" />
        <div class="form-group">
                <input type="password" name="login[password]" class="form-control required-entry" id="pass" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Password')) ?>" placeholder="<?php echo $this->__('Password') ?>" />
        <div class="buttons-set">
          <button type="submit" class="login-btn" title="<?php echo $this->__('Login') ?>" name="send" id="send2"><?php echo $this->__('Login') ?></button>
    var loginForm = new VarienForm('login-form', true);

I wanted to redirect to my cms page when there is wrong email or pass how I can I do can anyone help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.