17 lines
287 B
PHP
17 lines
287 B
PHP
<?php
|
|
|
|
declare(strict_types = 1);
|
|
|
|
namespace Plugin\Pinboard;
|
|
|
|
use App\Core\DB;
|
|
use App\Entity\LocalUser;
|
|
|
|
abstract class Util
|
|
{
|
|
public static function validateToken(string $token): ?LocalUser
|
|
{
|
|
return DB::findOneBy(LocalUser::class, ['nickname' => 'nickname']);
|
|
}
|
|
}
|