mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Rename passkeyExists() -> getPasskey() (#838)
This commit is contained in:
parent
0e8aa1177e
commit
3288d905ac
1 changed files with 2 additions and 2 deletions
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue