password

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

password

Lambo
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

Ireland
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Reply | Threaded
Open this post in threaded view
|

Re: password

Sarah Reichelt-2
> 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
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Reply | Threaded
Open this post in threaded view
|

Re: password

xtalkprogrammer
In reply to this post by Lambo
Hi Liam,

Your scripts looks fine, only it could be a little shorter, slightly  
faster and, following Sarah's advice, slightly more secure:

set the caseSensitive to true
set the itemdel to comma
ask "User Name"
if it is empty then exit mouseup
put it into tUser
put item 2 of line lineoffset(tUser & comma,fld "pass") of fld "pass"  
into tPassword
ask password "Please enter your password"
if it is tPassword then
   answer "yahooo" -----Do what ever here
else
   -- blabla
end if

Untested, but I think it will work.

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Salery is the easiest way to set up your own web store: http://
www.salery.biz/salery.html


Op 27-apr-2006, om 0:06 heeft Liam Lambert het volgende geschreven:

> 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
>
> Ireland

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Kind regards,

Drs. Mark Schonewille

Economy-x-Talk Consultancy and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
Facebook: http://facebook.com/LiveCode.Beginner
KvK: 50277553