Sign In Module feature - no Login Failed message

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/6/2014 2:05:25 PM
Gravatar
Total Posts 49

Sign In Module feature - no Login Failed message

Looking for a quick fix for this if possible. Somewhere along the line around version 2.4.0.2, when using the Sign In Module feature on a page, it no longer shows a "Login Failed" message when login fails. It shows nothing.

I have confirmed this behavior in the current Mojoportal Demo site.

This is just for the feature module - the message shows on the admin login page (/secure/login.aspx).

We have a site that uses the login on their homepage and it's causing much confusion. 

Thanks!
Tim

 

11/8/2014 12:55:46 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Sign In Module feature - no Login Failed message

I cannot reproduce this problem in 2.4.0.3.

For example try to login on this page: https://hbsmrdocumentation.esdm.co.uk/ and you will see the "Login failed" message.

It also works as expected on the demo site.

Perhaps the problem is with your skin making the message invisible?

11/11/2014 8:15:31 AM
Gravatar
Total Posts 49

Re: Sign In Module feature - no Login Failed message

Just wanted to post an update after finding the problem. If you are using the following user.config key to redirect after login, it will not show the "Login Failed" message. 

<add key="PageToRedirectToAfterSignIn" value="/default.aspx"/> 

It seems to have something to do with the update panel not coming back to the original login page - probably first going to the redirect, then returning to the original page. Looking at the Response in the browser it does not have have any of the update panel html.

This is beyond my skills so I don't know what the fix is, but figured it should be reported.

Thanks
Tim

11/13/2014 1:34:58 PM
Gravatar
Total Posts 18439

Re: Sign In Module feature - no Login Failed message

I spent some time looking into this and I don't think I can fix it either, or at least I don't want to put more time into it at this point.

The problem is you can't redirect inside updatepanel, so when you try to force it to redirect with that setting it has to unhook the controls from triggering the updatepanel ajax postback, otherwise the redirect won't happen.

But then on login error the updatepanel does not get updated

there might be some fancy way to solve it instead of unhooking the updatepanel, maybe javascript could be triggered after the updatepanel on success to change the location.href to the redirect url

but at this time it is not something I have time to dedicate to solving, so my recommendation is just don't use the sign in module, just use the login page if you are forcing a specific page redirect on login (which I also don't recommend doing and would not do myself without some real specific need to do that).

 

You must sign in to post in the forums. This thread is closed to new posts.