Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Constructor 10/5/2009 5:37 PM (edited 10/5/2009 5:40 PM)
This is using V1.6.

I have a site that has a login on the default.aspx (homepage)

When you login with unregistered login detail (non existent in the database) the page redirects to the registration page via a moduleaction to:
http://domain/9/section.aspx/NewUser/{username}

The {username} being the value that was entered by the user trying to log in.

All is fine locally. I have a test user called 'admin'. When the site is on the remote server all seems fine EXCEPT!

When the user enters the username 'admin2' (which does not exist) the sire redirects to the following:
http://domain/9/section.aspx/NewUser/admin2

This is how it should be except that I get the error:
The file '/5/section.aspx' does not exist.

It DOES exist! If I try again with the username 'TestUserName' like this...
http://domain/9/section.aspx/NewUser/TestUserName

...all is well! It works fine.

It ONLY fails when the first four characters of the passed username are 'admi' as in 'admin', 'admin2' or "adminusertest'. 'adm' works fine. ANY other word works fine! I am stumped!

Anyone got ANY ideas regarding this?
# martijnb 10/6/2009 10:01 AM
This is because the regexes for the rewrite rules in web.config are not tight enough (/Admin is excluded). The same will probably happen with the user 'login'.
# Constructor 10/6/2009 12:10 PM
martijnbThis is because the regexes for the rewrite rules in web.config are not tight enough (/Admin is excluded). The same will probably happen with the user 'login'.

Ok, great. I understand now.
Thanks Martijn.