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