on Wed, 12 Jun 2002 12:51:29 GMT, [EMAIL PROTECTED] (Ben
Huyghebaert) wrote: 

>    Here is the code I'm using right now.  I open up the file with
>    the usernames and passwords and throw it all into @access and
>    then do this 

If you put your username/password pairs in a hash instead of an array, 
as follows:

    $users{'username'} = 'password';

your verification code can be much simpler:

    if (exists $users{$username} && $users{$username} eq $password) {
        # validated
    } else {
        # not validated
    }

You also may consider encrypting your passwords.

-- 
felix


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to