mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-24 22:48:18 +00:00
Some code simplifications.
This commit is contained in:
@@ -69,14 +69,13 @@ class ConfirmationController extends Controller
|
||||
$now = time();
|
||||
$maxDiff = config('firefly.resend_confirmation');
|
||||
$owner = env('SITE_OWNER', 'mail@example.com');
|
||||
$view = 'auth.confirmation.no-resent';
|
||||
if ($now - $time > $maxDiff) {
|
||||
|
||||
event(new ResendConfirmation(Auth::user(), $request->ip()));
|
||||
|
||||
return view('auth.confirmation.resent', ['owner' => $owner]);
|
||||
} else {
|
||||
return view('auth.confirmation.no-resent', ['owner' => $owner]);
|
||||
$view = 'auth.confirmation.resent';
|
||||
}
|
||||
|
||||
return view($view, ['owner' => $owner]);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user