X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl-cms.git;a=blobdiff_plain;f=login.php;fp=login.php;h=79a8f83209d1575634a53d8723065cf9a2e43007;hp=10c7243a08f1a26ca7195da99981f04c7c964749;hb=d8a3c68fe7131555725440aabc9f82e53520b5dc;hpb=35a09e30f8e03af23fbd9078e628ba885b0be626 diff --git a/login.php b/login.php index 10c7243..79a8f83 100644 --- a/login.php +++ b/login.php @@ -26,7 +26,7 @@ function login_main() { } } else { if (!function_exists('password_hash')) { - require_once(DOCROOT . 'inc/password_funcs_backported.php'); + require_once(__DIR__.'/'.'inc/password_funcs_backported.php'); } if (password_verify($data['password'], $row['password'])) { $password_good = true; @@ -38,7 +38,7 @@ function login_main() { if ($password_good) { if ($needs_rehash) { if (!function_exists('password_hash')) { - require_once(DOCROOT . 'inc/password_funcs_backported.php'); + require_once(__DIR__.'/'.'inc/password_funcs_backported.php'); } $hash = password_hash($data['password'], PASSWORD_DEFAULT); db_update('users', 'password', $hash, 'where id=%i', $row['id']);