🤖 Auto commit for release 'develop' on 2026-04-18

This commit is contained in:
JC5
2026-04-18 05:53:42 +02:00
parent 64509f810f
commit f2fc4dd2ed
61 changed files with 607 additions and 504 deletions
+10 -11
View File
@@ -45,11 +45,9 @@ use Illuminate\Http\Request;
use Illuminate\Routing\Redirector;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Log;
use Illuminate\View\View;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use SensitiveParameter;
@@ -68,8 +66,9 @@ final class ProfileController extends Controller
/**
* ProfileController constructor.
*/
public function __construct(protected ValidationFactory $validation,)
{
public function __construct(
protected ValidationFactory $validation
) {
parent::__construct();
$this->middleware(static function ($request, $next) {
@@ -189,7 +188,7 @@ final class ProfileController extends Controller
$user = auth()->user();
$isInternalAuth = $this->internalAuth;
// $count = DB::table('oauth_clients')->where('personal_access_client', true)->whereNull('user_id')->count();
$count = 0;
$count = 0;
$subTitle = $user->email;
$userId = $user->id;
$enabled2FA = null !== $user->mfa_secret;
@@ -200,12 +199,12 @@ final class ProfileController extends Controller
$mfaBackupCount = count($recoveryData);
$this->createOAuthKeys();
// if (0 === $count) {
// /** @var ClientRepository $repository */
// $repository = app(ClientRepository::class);
// $name = sprintf('%s Personal Access Grant Client', config('app.name'));
// $repository->createPersonalAccessClient(null, $name, 'http://localhost');
// }
// if (0 === $count) {
// /** @var ClientRepository $repository */
// $repository = app(ClientRepository::class);
// $name = sprintf('%s Personal Access Grant Client', config('app.name'));
// $repository->createPersonalAccessClient(null, $name, 'http://localhost');
// }
$accessToken = Preferences::get('access_token');
if (null === $accessToken) {