Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
Go to DotNetFunda.com
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 3177 |  Welcome, Guest!   Register  Login
Home > Articles > ASP.NET > PasswordRecovery with CAPTCHA

PasswordRecovery with CAPTCHA

1 vote(s)
Rating: 4 out of 5
Article posted by Steven on 11/6/2012 | Views: 1456 | Category: ASP.NET | Level: Beginner | Points: 250 red flag


I will show you how to implement Password Recovery control with CAPTCHA included and how to handle the background processing.

Introduction

Recently I have found a problem in implementing PasswordRecovery which is provided by ASP.Net. But the problem I faced using this control is hackers can use this to find out the valid usernames from assumptions.


Objective

I want to implement CAPTCHA along with the PasswordRecovery and also to avoid hackers to get the valid username, I am passing the same message back from server to the client machine in case of success or failure.


Using the code

Implement the PasswordRecovery

Download the free CAPTCHA control from  http://www.mondor.org/captcha.aspx


Instead of using default SuccessTemplate I have use a Div with id and runat server attribute . This is to show same message in failure or success.




Now I have handled the Captcha errors in the code-behind.



Now trying the functionality.


       Case 1: Enter wrong username with wrong Captcha letters


   Case 2: Enter wrong username with correct Captcha letters



   Case 3: Enter correct username with correct Captcha letters



Conclusion


This is a quick and easiest way to implement CAPTCHA in ASP.NET applications.

Thanks for looking in to my solution.

If you like this article, subscribe to our RSS Feed. You can also subscribe via email to our Interview Questions, Codes and Forums section.

Page copy protected against web site content infringement by Copyscape
Found interesting? Add this to:



Please Sign In to vote for this post.

Latest Articles from Steven
Experience:6 year(s)
Home page:http://www.dotnetfunda.com
Member since:Monday, October 22, 2012
Level:Starter
Status: [Member]
Biography:
>> Write Response - Respond to this post and get points
Related Posts

To list values of all sever environment variables in one go.

One of the Junior at working was checking with me on how to use Switch Case in FileUpload control.He was assigned a task where different types files should be uploaded to the respective folder.for example,if the user is uploading image,it should be uploaded to the image folder,if PDF then to PDF folder ,if docx/doc then to word folder.And moreover the main part was if the file with the same name already exists in that folder,then filename must get renamed and a notification with new filename is shown to the user.When I helped him complete the code,I thought of sharing it too.

This Article will allow you to customise the Calendar Control in ASP.NET according to your requirements. Disabling Dates,Formating how dates Appears etc...

Security is one of the major aspects in terms of a web application. Security can be implemented using different methods in a web application. One of the main components, which required high security, is the configuration files, where we will define the configurations. In this document, we will discuss about the simple way to protect the web.config entries.

In this article we will touch base some important concepts of handling concurrency in LINQ to SQL. We will first see how LINQ supports optimistic concurrency and then we will see what support LINQ provides to handle concurrency violation. We will then touch base on some fine tuning features provided by LINQ at field level and finally we will end this article by discussing two important error reporting options when concurrency conflict happens.

More ...
About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/19/2013 7:02:06 PM