Jahia in English > Custom login form...

0 (0 Good)
0 (0 Bad)

Custom login form redirect and login errors

by  mxlab »  2012/12/10 11:35

Hi all!

I have done a custom login component starting from the default jnt_login module to modify a little the presentation and I have placed it on the homepage of my site.

The problem is that when I do a wrong login (ie writing the wrong password) jahia sends me to the default login page (/cms/login), but I want it to stay on the homepage and show the errors related to the incorrect login.

So, how can I prevent Jahia from redirecting me to /cms/login page after an incorrect login attempt and let it show me the errors on my custom login form component?

Thanks a lot!

  • Custom login form redirect and login errors
    2012/12/10 11:35

    mxlab <p> Hi all!</p> <p> I have done a custom login component starting from the default jnt_login module to modify a little the presentation and I have placed it on the homepage of my site.</p> <p> The problem is that when I do a wrong login (ie writing the wrong password) jahia sends me to the default login page (/cms/login), but I want it to stay on the homepage and show the errors related to the incorrect login.</p> <p> So, how can I prevent Jahia from redirecting me to /cms/login page after an incorrect login attempt and let it show me the errors on my custom login form component?</p> <p> Thanks a lot!</p>

  • Number of messages  33
    Registration date Dec 10, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Custom login form redirect and login errors

    by  shyrkov »  2012/12/10 12:35

    Hello,

    which Jahia version are you using?

    If I am not mistaken this functionality (staying on the same page insted of a redirect to /cms/login on wrong credentials) is the default one starting from Jahia 6.6.1.0, if you are using <ui:loginArea/> tag.

     

    Kind regards

    Sergiy

  • Re: Custom login form redirect and login errors
    2012/12/10 12:35

    shyrkov <p> Hello,</p> <p> which Jahia version are you using?</p> <p> If I am not mistaken this functionality (staying on the same page insted of a redirect to /cms/login on wrong credentials) is the default one starting from Jahia 6.6.1.0, if you are using &lt;ui:loginArea/&gt; tag.</p> <p> &nbsp;</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Dec 10, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Custom login form redirect and login errors

    by  mxlab »  2012/12/10 14:36

    I'm using 6.6.0.0 and yes I use <ui:loginArea> tag!

    I can't upgrade to 6.6.1.0, is there any workaround?

  • Re: Re: Custom login form redirect and login errors
    2012/12/10 14:36

    mxlab <p> I&#39;m using 6.6.0.0 and yes I use &lt;ui:loginArea&gt; tag!</p> <p> I can&#39;t upgrade to 6.6.1.0, is there any workaround?</p>

  • Number of messages  33
    Registration date Dec 10, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: Custom login form redirect and login errors

    by  mxlab »  2012/12/11 17:32

    Any advice?

    I can't belive it's impossibile!

  • Re: Re: Re: Custom login form redirect and login errors
    2012/12/11 17:33

    mxlab <p> Any advice?</p> <p> I can&#39;t belive it&#39;s impossibile!</p>

  • Number of messages  33
    Registration date Dec 11, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: Re: Custom login form redirect and login errors

    by  mxlab »  2012/12/13 14:00

    Ok, searching into jahia 6.6.1.0 sources I've found this tag inside the default jahia login form

    <input type="hidden" name="failureRedirect" value="/cms/en/sites/test/home.html">

    but it doesn't work on jahia 6.6.0.0...how can I make it works?

    Thanks!

  • Re: Re: Re: Re: Custom login form redirect and login errors
    2012/12/13 14:00

    mxlab <p> Ok, searching into jahia 6.6.1.0 sources I&#39;ve found this tag inside the default jahia login form</p> <p> &lt;input type=&quot;hidden&quot; name=&quot;failureRedirect&quot; value=&quot;/cms/en/sites/test/home.html&quot;&gt;</p> <p> but it doesn&#39;t work on jahia 6.6.0.0...how can I make it works?</p> <p> Thanks!</p>

  • Number of messages  33
    Registration date Dec 13, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: Re: Re: Custom login form redirect and login errors

    by  faissah »  2012/12/14 21:53

    There is no very simple way to do it in Jahia 6.6. This is why we added it in 6.6.1

    Regards,

    Fabrice

    Fabrice  (faissah)

    Number of messages  264
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page