[thelist] php password failing on registration

Andrew Maynes andrew at uk-webdeveloper.co.uk
Wed Jul 10 05:30:01 CDT 2002


Hi Rob

this is the password part of the code, if I take out the crypt? do you think it
will solve the problem?

// Check to make sure the password is long enough and of the right format.
	if (eregi ("^[[:alnum:]]{8,16}$", $HTTP_POST_VARS[pass1])) {
		$b = TRUE;
	} else {
		$b = FALSE;
		$message[] = "Please enter a password that consists only of letters and
numbers, between 8 and 16 characters long.";
	}

	// Check to make sure the password matches the confirmed password.
	if ($HTTP_POST_VARS[pass1] == $HTTP_POST_VARS[pass2]) {
		$c = TRUE;
		$password = crypt ($HTTP_POST_VARS[pass1]); // Encrypt the password.
	} else {
		$c = FALSE;
		$message[] = "The password you entered did not match the confirmed password.";
	}
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.374 / Virus Database: 209 - Release Date: 7/9/02




More information about the thelist mailing list