mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Update last logged in for client contact
This commit is contained in:
parent
90e711165b
commit
45d21eabb4
@ -11,6 +11,7 @@
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Events\Contact\ContactLoggedIn;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\ClientContact;
|
||||
use Auth;
|
||||
@ -62,6 +63,8 @@ class ContactLoginController extends Controller
|
||||
{
|
||||
Auth::guard('contact')->login($client, true);
|
||||
|
||||
event(new ContactLoggedIn($client));
|
||||
|
||||
if (session()->get('url.intended')) {
|
||||
return redirect(session()->get('url.intended'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user