mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-25 06:51:08 +00:00
Some bug fixes.
This commit is contained in:
@@ -41,8 +41,7 @@ use League\Csv\CannotInsertRecord;
|
|||||||
class IndexController extends Controller
|
class IndexController extends Controller
|
||||||
{
|
{
|
||||||
|
|
||||||
/** @var JournalRepositoryInterface */
|
private JournalRepositoryInterface $journalRepository;
|
||||||
private $journalRepository;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IndexController constructor.
|
* IndexController constructor.
|
||||||
|
@@ -37,6 +37,8 @@ use Illuminate\Http\RedirectResponse;
|
|||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Routing\Redirector;
|
use Illuminate\Routing\Redirector;
|
||||||
use Illuminate\View\View;
|
use Illuminate\View\View;
|
||||||
|
use Throwable;
|
||||||
|
use Log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class EditController
|
* Class EditController
|
||||||
@@ -45,8 +47,7 @@ class EditController extends Controller
|
|||||||
{
|
{
|
||||||
use RuleManagement, RenderPartialViews;
|
use RuleManagement, RenderPartialViews;
|
||||||
|
|
||||||
/** @var RuleRepositoryInterface Rule repository */
|
private RuleRepositoryInterface $ruleRepos;
|
||||||
private $ruleRepos;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* RuleController constructor.
|
* RuleController constructor.
|
||||||
|
@@ -53,6 +53,7 @@ class PwndVerifierV2 implements Verifier
|
|||||||
*/
|
*/
|
||||||
public function validPassword(string $password): bool
|
public function validPassword(string $password): bool
|
||||||
{
|
{
|
||||||
|
// Yes SHA1 is unsafe but in this context its fine.
|
||||||
$hash = sha1($password);
|
$hash = sha1($password);
|
||||||
$prefix = substr($hash, 0, 5);
|
$prefix = substr($hash, 0, 5);
|
||||||
$rest = substr($hash, 5);
|
$rest = substr($hash, 5);
|
||||||
|
Reference in New Issue
Block a user