User password confirmation validation: how to prevent user from copy/pasting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dipalichavan82
    New Member
    • Feb 2008
    • 41

    #1

    User password confirmation validation: how to prevent user from copy/pasting

    i m creating a login page.i want user password to be entered twice for confirmation... ......but user can use ctr+c and ctrl+v(i.e.copy -paste) .how to restrict user to do this
    plz tell
    thnx in advance.....i m using asp.net
  • mrhoo
    Contributor
    • Jun 2006
    • 428

    #2
    validate the second password by checking each character as it is entered from the keyboard against the corresponding character from the first input.

    It doesn't matter what the user does if he can only continue after all of the individual character keypresses have been verified.

    Make sure you have a minimum length in the first box...

    Comment

    Working...