Security :: Jeff Atwood Captcha Control In UserWizard?
Jan 11, 2010
I am using Jeff Atwood's captcha control in a CreateUserWizard. It all works, but I have an issue with the tabindex. I want the user to enter the captcha code, hit enter and that automatically fires the Next button on the wizard. No matter what combination of tabindexes I try, I can't get it to work.
In my application Members are created in a process, by the club administrator. If a member wants access to the secure areas of the website he must use the page that contains the CreateUserWizard to create his login account. The membership data is contained in the Members table and has IDMember as the PK. I have added IDMember to the aspnet_Users table as a FK. When I create a new user with the CreateUserWizard, I also need to Insert the IDMember of the new user into the aspnet_Users table along with all the other data from the CreateUserWizard.
In the CreateUserWizard's CreatingUser event handler I used LINQ to SQL to query the Members table to insure that the user is a valid member and to extract his IDMember. I also query the aspnet_Users table to insure that the user had not previously created a login account. If these two test are not passed I set e.cancel = true. If the two tests are passed, how do I modify the Insert command of the CreateUserWizard to insert the IDMember into the aspnet_Users table? Here is the code for the CreatingUser event handler.
[Code]....
Finally, a minor problem; I'm attempting to use the Literal control that is in the CreateUserWizard to display an error message if one of the two tests fail. There are no compile or run time errors, but alas my error message does not appear.
I have a working registration page and I'm adding CAPTCHA. The CAPTCHA works and I have a simple if/else loop to do what happens if the CAPTCHA input was correct or incorrect.
if (Page.IsValid) { feedback.InnerHtml = "Correct."; //I would like to put something here to process the registration -- CAPTCHA was done correctly } else { feedback.InnerHtml = "Incorrect."; }
I want to write something in the if/else loop that will enact the registration.
I have a blank page with a Captcha called Captcha.aspx. I would like to add this as the second step to a CreateUserwizard. The following is what I want to achieve:i) User enters their Username etc in CreateUserwizard and clicks the CreateUser Button(ii) After clicking the CreateUser button, user sees the Captcha.aspx page and enters the correct stuff in the Captcha box and click a continue button(iii) User account is created if correct details were entered in the Captcha else no account is created, rather the user is sent to a page informing him or her that no account has been created
I could really use some help here. I owuld like to implement a simple CAPTCHA mechanism with the membership system. Can someone please help me out. I have found MSCAPTCHA, but it doesn't seem to work in the .NET 3.5 world. I have been pulling my hair out for a couple of days now.
i have login page that i use captcha image but i want if user login fail for 3 times append this captcha to login page so user must enter content of captcha image to login.how can i do that?
I'm looking to prevent session hijacking in my ASP.NET application and came across this great post by Jeff Prosise. However, it's from 2004 and I was wondering if there have been any updates that either perform the same thing, or result in any complications? Also, has anyone used this on a production server and, if so, have there been any issues caused by this? The only problem that could affect my applications is if someone's IP network changes in a short period of time, but I can't imagine this being very likely.
I am developing a website where I need a captcha control and I want to develop the captcha control itself, so in the future I can change its length, type, color, and have it be easy to manage as well.
So, suggest me which technology used for to develop the capha control and how.
I am using asp.net platform with vb.net as the language.
I am integrating a Captcha control inside a CreateUserWizard. As I wanted to do a validation for user's input based on the Captcha using an if.. else.. statement. However an error occured when I trying to get the Captcha control from the createuserwizard. Here the is error : The name 'Captcha1' does not exist in the current context.I had tried to get this control as a textbox, image, control but it was not successful. Here is the code :
I am using the ASPNET_Captcha control for my login page. It works fine. However when i implement the forms authentication, the catcha image does not appear.
Do i need the location section in the web.config file? If yes can you share the details for the same.
I'm implementing captcha on my website like the one in [URL]. It is working fine while running on VS2008. However, not when uploaded on IIS. I think the image is being blocked by IIS.. anyone knows how to fix this?
how to insert the "captcha code" and its validation process in vb asp.net.... i vave searched every were but i could nat get its code..atleast tel me is it possible to do so or not