Search
Sponsor
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Articles Author
Sun, 23-Nov-2014 Authors
All Time Authors
Sourav.Kayal
39750
SheoNarayan
38050
Niladri.biswas
33350

Latest members | More ...


(Statistics delayed by 5 minutes)
Ads
 Article

PasswordRecovery with CAPTCHA

Steven
Posted by under ASP.NET category on for Beginner level | Points: 250 | Views : 2841 red flag
If you found plagiarised (copied) or inappropriate content,
please let us know the original source along with your correct email id (to communicate) for further action.
Rating: 4 out of 5
1 vote(s)
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.

Page copy protected against web site content infringement by Copyscape
About the Author

Steven

Full Name: Pavan Suragana
Member Level: Starter
Member Status: Member
Member Since: 10/22/2012 11:06:05 AM
Country: United Kingdom
Pavan Suragana MCTS suragana_pavan@yahoo.com
http://www.dotnetfunda.com

Login to vote for this post.
Found interesting? Add this to:


Comments or Responses

Login to post response

Comment using Facebook(Author doesn't get notification)