Alpha Video Training
Results 1 to 4 of 4

Thread: Double Entry of a password

  1. #1
    Member
    Real Name
    D.Chiasson
    Join Date
    Jan 2004
    Location
    West Coast of Canada
    Posts
    632

    Default Double Entry of a password

    I have a password form with 3 passwords (encrypted). These passwords are used to enter certain forms in the application. On this password form, I want to make the user have to DOUBLE ENTER the password when they either first add it or change it to another value. As it is now, a user just types the password in then saves it.

    Here is field rules->Events for the password field.

    dim shared a_field_value as c
    a_field_value = encrypt(a_field_value)
    end

    Any ideas is appreciated. Big thanks.

    dewayne

    DeWayne

  2. #2
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default RE: Double Entry of a password

    'dim shared a_field_value as c - dangerous, a_field_value is a system variable and does not need dimming

    If you are using the cansave event

    a_field_value = encrypt(a_field_value)
    second = ui_get_text("Password","Please re-enter for verification","********")
    if second a_field_value
    cancel()
    end if
    end

  3. #3
    Member
    Real Name
    D.Chiasson
    Join Date
    Jan 2004
    Location
    West Coast of Canada
    Posts
    632

    Default RE: Double Entry of a password

    Oops wrong version. I am using Version 5.0

  4. #4
    "Certified" Alphaholic
    Real Name
    Cal Locklin
    Join Date
    Mar 2000
    Location
    S.E. Michigan
    Posts
    5,763

    Default RE: Double Entry of a password

    In the example, "second" will never be equal to a_field_value unless you know how to type an encrypted value! Don't encrypt it until after checking the second entry.

    second = ui_get_text("Password","Please re-enter for verification","********")
    IF second = a_field_value
    a_field_value = encrypt(a_field_value)
    ELSE
    cancel()
    END IF
    END

Similar Threads

  1. Double Entry bug?
    By dgshields in forum Alpha Five Version 5
    Replies: 15
    Last Post: 02-15-2007, 05:34 PM
  2. Field Validation - double entry
    By Tom Patten in forum Alpha Four Version 6 and Prior
    Replies: 1
    Last Post: 05-20-2005, 11:53 AM
  3. double entry capability
    By Steve Slack in forum Alpha Five Version 5
    Replies: 7
    Last Post: 09-16-2003, 12:47 PM
  4. Double Password script
    By Sigrist in forum Alpha Five Version 4
    Replies: 1
    Last Post: 03-05-2002, 08:26 AM
  5. prevent double entry
    By bobsk in forum Alpha Five Version 4
    Replies: 11
    Last Post: 10-10-2001, 06:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •