diff --git a/src/Legacy/Torrent.php b/src/Legacy/Torrent.php index b982194f7..5d12da700 100644 --- a/src/Legacy/Torrent.php +++ b/src/Legacy/Torrent.php @@ -742,12 +742,12 @@ class Torrent } /** - * Checks if user has a passkey + * Returns the user's passkey, false otherwise * * @param int|string $user_id * @return bool|string */ - public static function passkeyExists($user_id) + public static function getPasskey($user_id) { if ($passkey = DB()->fetch_row("SELECT auth_key FROM " . BB_BT_USERS . " WHERE user_id = $user_id LIMIT 1")) { return $passkey['auth_key'];