mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 11:48:05 +00:00
Various code cleanup.
This commit is contained in:
@@ -207,6 +207,7 @@ class ProfileController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
// generate codes if not in session:
|
// generate codes if not in session:
|
||||||
|
$recoveryCodes = '';
|
||||||
if (!session()->has('temp-mfa-codes')) {
|
if (!session()->has('temp-mfa-codes')) {
|
||||||
// generate codes + store + flash:
|
// generate codes + store + flash:
|
||||||
$recovery = app(Recovery::class);
|
$recovery = app(Recovery::class);
|
||||||
|
@@ -32,7 +32,6 @@ use FireflyIII\Support\Http\Controllers\GetConfigurationData;
|
|||||||
use Illuminate\Contracts\View\Factory;
|
use Illuminate\Contracts\View\Factory;
|
||||||
use Illuminate\Http\JsonResponse;
|
use Illuminate\Http\JsonResponse;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Arr;
|
|
||||||
use Illuminate\View\View;
|
use Illuminate\View\View;
|
||||||
use Laravel\Passport\Passport;
|
use Laravel\Passport\Passport;
|
||||||
use Log;
|
use Log;
|
||||||
@@ -206,7 +205,7 @@ class InstallController extends Controller
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// clear cache as well.
|
// clear cache as well.
|
||||||
Cache::clear();
|
Cache::clear(); // @phpstan-ignore-line
|
||||||
Preferences::mark();
|
Preferences::mark();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -56,6 +56,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
|||||||
* @property \Carbon\Carbon|null $process_date
|
* @property \Carbon\Carbon|null $process_date
|
||||||
* @property int $order
|
* @property int $order
|
||||||
* @property int $tag_count
|
* @property int $tag_count
|
||||||
|
* @property string $transaction_type_type
|
||||||
* @property bool $encrypted
|
* @property bool $encrypted
|
||||||
* @property bool $completed
|
* @property bool $completed
|
||||||
* @property-read \Illuminate\Database\Eloquent\Collection|\FireflyIII\Models\Attachment[] $attachments
|
* @property-read \Illuminate\Database\Eloquent\Collection|\FireflyIII\Models\Attachment[] $attachments
|
||||||
|
Reference in New Issue
Block a user