Rename passkeyExists() -> getPasskey() (#838)

This commit is contained in:
Roman Kelesidis 2023-07-23 14:05:48 +07:00 committed by GitHub
commit 3288d905ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'];