Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using PasswordRecovery 1

Status
Not open for further replies.

hjmc

Technical User
Nov 20, 2002
38
GB
I have forms auth. working well and want to extend it by using the PasswordRecovery control

My login.aspx has the PasswordRecoveryURL set to the PasswordRecovery.aspx and I have the PasswordRecoveryText set up also which is shown as a hyperlink to the URL

When I try to use the hyperlink the screen flickers as if it has been somewhere but promptly returns to Login screen; I cant get to the Recovery screen.

Any help is welcome.
 
The FormsAuthentication is probably denying access to this page because you haven't yet logged in. If this is the case then the URL will include the password recovery page address in the url after you attempt to navigate to it.

In order to allow access to this page without having to first log in you must add an entry to the web.config file.

Code:
<system.web>

</system.web>

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

I think I read somewhere that this must sit beneath the system.web section but not sure if that's true or not.

Note: the path may need changing depending on where your PasswordRecovery.aspx page is located.

HTH

Smeat
 
Thanks Smeat, works great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top