mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Example run of recurring thing outside of cron job.
This commit is contained in:
parent
9914c0791e
commit
c465d1c059
@ -23,9 +23,11 @@ declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Http\Controllers\Auth;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use DB;
|
||||
use FireflyConfig;
|
||||
use FireflyIII\Http\Controllers\Controller;
|
||||
use FireflyIII\Jobs\CreateRecurringTransactions;
|
||||
use FireflyIII\User;
|
||||
use Illuminate\Cookie\CookieJar;
|
||||
use Illuminate\Foundation\Auth\AuthenticatesUsers;
|
||||
@ -129,6 +131,10 @@ class LoginController extends Controller
|
||||
*/
|
||||
public function showLoginForm(Request $request)
|
||||
{
|
||||
|
||||
// run recurring job:
|
||||
$job = new CreateRecurringTransactions(new Carbon);
|
||||
$job->handle();
|
||||
$count = DB::table('users')->count();
|
||||
if (0 === $count) {
|
||||
return redirect(route('register')); // @codeCoverageIgnore
|
||||
|
Loading…
Reference in New Issue
Block a user