Gazelle/sections/ajax/password_validate.php

19 lines
268 B
PHP
Raw Normal View History

2012-06-17 08:00:18 +00:00
<?php
2013-06-04 08:00:34 +00:00
$Password = db_string($_POST['password']);
2012-06-17 08:00:18 +00:00
$IsGoodPassword = false;
2013-06-04 08:00:34 +00:00
$DB->query("
SELECT Password
FROM bad_passwords
WHERE Password='$Password'");
2012-06-17 08:00:18 +00:00
2013-07-10 00:08:53 +00:00
if (!$DB->has_results()) {
2012-06-17 08:00:18 +00:00
$IsGoodPassword = true;
}
2013-06-04 08:00:34 +00:00
echo ($IsGoodPassword ? 'true' : 'false');
2012-06-17 08:00:18 +00:00
exit();
?>