Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to create a login page using picture password.
picture password means select any picture, and click any four points, these points converted into x y coordinates and saved into the database how can i do?
Posted

 
Share this answer
 
Comments
Zoltán Zörgő 9-Apr-13 7:12am    
Nice! +5!
bbirajdar 9-Apr-13 8:35am    
:) Thanks Zoltan
Finding the actual mouse position is harder than you might think - the various different browsers do it in different ways (and it obviously has to be done at the client). This may help you: http://docs.jquery.com/Tutorials:Mouse_Position[^]

But personally, I wouldn't. Why not? Because what are your users going to do when they don't have a mouse? A Tablet, or smartphone for example.

The other approach might be to divide the image into parts: if you make it into nine separate images then it is easier to work with as they just need to touch the appropriate part image - which can have it's own event. Depends how accurate you want your users to be how many images you need.
 
Share this answer
 
Comments
Monster Maker 9-Apr-13 7:30am    
i think breaking the image into 9 parts will make it complex and harder to learn,
how about providing n-images(with ids) by the application to the user,
and let user choose m(
Interesting. You want something like the android "pattern password" with 3x3 point? Heer is a javascript library to do that: http://blog.stef.be/patternlock[^].
But you will have to pass the "password" to an input field on client side, and send it as any regular credential.
I suggest you use the authentication facilities shipped with asp.net, more precisely the forms authentication[^]. As membership and role provider you can use any (or custom), but I suggest you start with the sql based one[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900