kishan66
asked on
Change Password - Form Authentication,ASP.NET
Hi,
I am using Login Control - Form Authentication in my application.
Autheticating users using Custom function using LDAP for Active Directory.
Every thing works perfectly fine.
Now, i have created a forgotPassword.aspx page and added a PasswordRecoveryURL& PasswordRecoveryText on the Login control.... expecting whenver user cliks on "Forgot password".. should be taken to that page .
But,..it still hangs on at Login.aspx page expecting user to provide login credentials ....after that it takes to "forgot passoword" page.
How can i directly go to ForgotPassword.aspx page .
ASP.net 2.0, C#.net
(Note:- Not using Memebrship)
(pls find the code for Ref)
I am using Login Control - Form Authentication in my application.
Autheticating users using Custom function using LDAP for Active Directory.
Every thing works perfectly fine.
Now, i have created a forgotPassword.aspx page and added a PasswordRecoveryURL& PasswordRecoveryText on the Login control.... expecting whenver user cliks on "Forgot password".. should be taken to that page .
But,..it still hangs on at Login.aspx page expecting user to provide login credentials ....after that it takes to "forgot passoword" page.
How can i directly go to ForgotPassword.aspx page .
ASP.net 2.0, C#.net
(Note:- Not using Memebrship)
(pls find the code for Ref)
Web.Config
----------
<authentication mode="Forms" >
<forms loginUrl="login.aspx" name="adAuthCookie" timeout="60" path="/">
</forms>
</authentication>
--------------------------------------------------------------
Login.aspx
**********
if (e.Authenticated )
{
Session["UserID"] = Login2.UserName;
string groups = adAuth.GetGroups();
FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket(1, Login2.UserName, DateTime.Now, DateTime.Now.AddMinutes(60), false, groups);
string encryptedTicket = FormsAuthentication.Encrypt(authTicket);
HttpCookie authCookie = new HttpCookie(FormsAuthentication.FormsCookieName, encryptedTicket);
Response.Cookies.Add(authCookie);
ASKER
Hi nbove,
Thanks for th ereply.
As mentioned ,I dont have any dificulty in Authenticating user accross ActiveDirectory.
Difficulty:- Forgot Password
From Login.aspx, upon clicking on "Forgot Password", i am not being transferd to the page(forgotPassword.aspx). ..
rather i'm being redirected to Login.aspx as i'm using formAuthentication(pls correct me if wrong).
So, is there any way i can make forgotpassword.aspx page as -- No authentication required
Thanks for th ereply.
As mentioned ,I dont have any dificulty in Authenticating user accross ActiveDirectory.
Difficulty:- Forgot Password
From Login.aspx, upon clicking on "Forgot Password", i am not being transferd to the page(forgotPassword.aspx).
rather i'm being redirected to Login.aspx as i'm using formAuthentication(pls correct me if wrong).
So, is there any way i can make forgotpassword.aspx page as -- No authentication required
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You guys Rock again :-)
Thanks for the help nbove.
Thanks for the help nbove.
http://msdn.microsoft.com/en-us/library/ff650308.aspx