Forms Authentication Mode

  • Thread starter Thread starter tma
  • Start date Start date
T

tma

I am attempting to utilize "Forms" authentication mode for my web
application but need assistance with the "Add New User" methodology. When
that form is included, it is redirected to the login.aspx page unless the
user is authenticated. Clearly a new user cannot be authenticated. How is
this overcome, if not using the same form to create new users?
 
You need to indicate that your registration form is open to all users, like so:

<location path="Register.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

Check the documentation for "location element" for more info.
 
Awesome. Thank you for the speedy reply.

Greg Hurlman said:
You need to indicate that your registration form is open to all users, like so:

<location path="Register.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

Check the documentation for "location element" for more info.
 
tma,

We have a "pages" folder that allows unauthentiated users to access. The
create account page and the login page are in that folder.

All other pages are in the "secure" folder which has a web.config that
denies anonymous users
<deny users="?" />


hth,
TPS
 
Back
Top