password

Sarah Reichelt sarah.reichelt at gmail.com
Wed Apr 26 18:42:36 EDT 2006


> Mark thank you
>
> I finely worked out what I needed
>
> set the itemdel to comma
>    ask "User Name"
>    if it is empty then exit mouseup
>    put it into tUser
>    repeat for each line tline in fld "pass" ----This is a hidden fld
>      if item 1 of tline is tUser then
>        put item 2 of tline into tPassword
>      end if
>    end repeat
>    ask "Please enter your password"
>    if it is tPassword then
>      answer "yahooo" -----Do what ever here
>    else
>      answer "Wrong Pass"
>    end if
>

Liam, you may want to include this line:
  set the caseSensitive to true
before you check the user name & password. Otherwise "PASS", "Pass" &
"pass" will all appear to be the same.

Cheers,
Sarah



More information about the use-livecode mailing list