create temporary token for api authorization
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Auth\Events\Login;
|
||||
use Illuminate\Auth\Events\Logout;
|
||||
use Illuminate\Auth\Events\Registered;
|
||||
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||||
@@ -21,8 +22,13 @@ class EventServiceProvider extends ServiceProvider
|
||||
],
|
||||
|
||||
Login::class => [
|
||||
\App\Listeners\CreateTemporaryToken::class,
|
||||
\App\Listeners\SaveUserLoginIpBrowserAndPlatform::class,
|
||||
],
|
||||
|
||||
Logout::class => [
|
||||
\App\Listeners\DeleteTemporaryToken::class,
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user