Login page

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.
9/25/2009 4:24:08 PM
Gravatar
Total Posts 123
/Mats Lillnor

Login page

Hi!

I have found a problem with the /secure/login.aspx page.

If you type in username and password and click on the login-button with the mouse everything works as intended.

BUT, if you instead type username and password and then hit the ENTER-key, yo uare redirected to the search page instead, regardless if you type the correct password or not. This was not the case before i upgraded the site from version 2.3.1.0 (installed usin MS Web PI) to 2.3.6.7. I upgraded by copying all the files in the new distribution over the existing file structure.

The behaviour can be repeated and it is the same on my offline test-site.

Try for yourself on my site, www.haningebudoklubb.se/secure/login.aspx

Type a username and password and type a username and password and click on the login-button and you should get the message for invalid login (hopefully :-). Then try again and this time hit ENTER instead.

BR

/Mats Lillnor

 

9/25/2009 4:36:42 PM
Gravatar
Total Posts 123
/Mats Lillnor

Re: Login page - update

I just tried on this mojoportal.com and here this problem does not exist.

Then it came to my mind that I had changed the skin, so I changed back to the old skin and tested and now it works.

Sorry, the bug seems to be apparent only with some skins. The new skin I have made was based on Styleshout-coolwater, so I changed the site to the original coolwater-skin and now this bug appears again.

I went to another mojoportal-built site that i have seen that uses a skin with a search-field and button in the header (http://www.rsv4aprilia.net) and the bug is there to, if you press the Enter-key you end up on the search-results page.

So appaearantly this might just be that the search-button has the default focus even if you just have filled in the login-information. Shouldn't it be that when the password-field has focus (just typed the password) and hit enter, this should be sent to the login-form and not the search-panel?

Can this be changed? It is very annoying. I do not want to get rid of the search-panel in the header, since this is a great feature to have.

/Mats Lillnor

9/26/2009 6:53:18 AM
Gravatar
Total Posts 18439

Re: Login page

Hi,

Well, looking into this I found a minor bug.

The search input is not supposed to be shown on the login page and in fact it is not shown if you use the url 

http://www.haningebudoklubb.se/secure/Login.aspx

but it is shown using

http://www.haningebudoklubb.se/secure/login.aspx

so, the bug is that the check is case sensitive and should not be.

In the included skins the Sign-In link uses the correct case so it works but you removed that link from your skin and access the url directly using lower case and it shows the search input.

I just fixed this in my local copy so it will be fixed in the next release.

Best,

Joe

9/26/2009 9:08:12 AM
Gravatar
Total Posts 123
/Mats Lillnor

Re: Login page

Thanks Joe! I look forward to the new version.

I have removed the login and register-links since in this is not an open site and only a few people that administer the site should be able to login.

However, there are similar issues that are not fixed by removing the search-panel from the login-page. Other pages that have input forms on them also has the problem that the search-panel gets focus, like when entering a blog or forum post or filling in a form.

On my site I have a contact-form and my tests show that, depending on where you click, the search-panel gets focus so that pressing ENTER does not post the form, but initiate a search, for instance o this page http://www.haningebudoklubb.se/kontakt.aspx and everything you have filled out in the form is lost.

Could the search-panel be modified so that it does not accept ENTER at all or that it is always "in the background" so to say.

 

By the way, now when I knew the issue with the case-sensitive url-checking I tried to fix it myself by using the 301-redirect manager under Advanced Tools. I redirected the lower-case url to the upper case... Well, not so clever, this did not work! Instead IE was tracked in a loop and couldnt display the login-page and firefox was complaining about invalid redirection and did not show the page, so I could not log in again to remove the redirection either Foot in mouth. I did this with my laptop, but fortunately on the local server console I was logged on, so I could remove the redirection. Phew! Laughing

/Mats

9/26/2009 9:40:18 AM
Gravatar
Total Posts 18439

Re: Login page

Hi,

On my site I have a contact-form and my tests show that, depending on where you click, the search-panel gets focus so that pressing ENTER does not post the form, but initiate a search

Thats the ways its supposed to work, whichever form has the focus should post by the enter key. If the contact form has the focus the enter key works for it, if the blog post form has the focus the enter key works for it, if the search has focus the enter key works for it. Now really in asp.net there is only 1 form but the point remains the same as if there were multiple forms on the page, the one with the focus gets the enter key. This is the expected behavior.

In ASP.NET this is accomplished by wrapping a Panel around it and making a specific button the DefaultButton of the panel so that if the panel has focus the enter key triggers its default button. 

I could have told you that redirect would not work because in IIS urls are not case sensitive so IIS sees no difference based on case. This really stems from the fact the the Windows file system is not case sensitive, whereas on linux file and folder names are case sensitive and therefore so are urls when hosted on linux with apache. The case sensitivity bug  that was allowing the search form on the login page was in C# code.

The new release is coming soon but a preview release for MS SQL is available now and has this fix, you can download it now from Novell Forge.

Best,

Joe

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