From eb18020ef02e77937d7b1303197f60b91e590d99 Mon Sep 17 00:00:00 2001 From: ozh Date: Wed, 19 Apr 2017 23:27:19 +0200 Subject: [PATCH] Remove password verification --- includes/functions-auth.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/includes/functions-auth.php b/includes/functions-auth.php index db44f8c..0831790 100644 --- a/includes/functions-auth.php +++ b/includes/functions-auth.php @@ -395,16 +395,11 @@ function yourls_check_timestamp( $time ) { * */ function yourls_store_cookie( $user = null ) { + + // No user will delete the cookie with a cookie time from the past if( !$user ) { - $pass = null; $time = time() - 3600; } else { - global $yourls_user_passwords; - if( isset($yourls_user_passwords[$user]) ) { - $pass = $yourls_user_passwords[$user]; - } else { - die( 'Stealing cookies?' ); // This should never happen - } $time = time() + YOURLS_COOKIE_LIFE; } -- 2.42.0