Remove giveaway page and announcements
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\Request;
|
||||
use Laravel\Socialite\Facades\Socialite;
|
||||
|
||||
class DiscordController extends Controller
|
||||
{
|
||||
|
||||
public function redirect() {
|
||||
|
||||
return Socialite::driver('discord')->redirect();
|
||||
|
||||
}
|
||||
|
||||
public function callback() {
|
||||
//
|
||||
}
|
||||
|
||||
|
||||
}
|
@@ -27,6 +27,7 @@ use Illuminate\Foundation\Auth\AuthenticatesUsers;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use App\Facades\IP;
|
||||
use Laravel\Socialite\Facades\Socialite;
|
||||
|
||||
class LoginController extends Controller
|
||||
{
|
||||
@@ -94,4 +95,12 @@ class LoginController extends Controller
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function discordRedirect() {
|
||||
return Socialite::driver('discord')->redirect();
|
||||
}
|
||||
|
||||
public function discordCallback() {
|
||||
// TODO;
|
||||
}
|
||||
}
|
||||
|
@@ -30,6 +30,8 @@ use Illuminate\Auth\Events\Registered;
|
||||
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use SocialiteProviders\Discord\DiscordExtendSocialite;
|
||||
use SocialiteProviders\Manager\SocialiteWasCalled;
|
||||
|
||||
class EventServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -49,9 +51,9 @@ class EventServiceProvider extends ServiceProvider
|
||||
Login::class => [
|
||||
LogAuthenticationSuccess::class,
|
||||
],
|
||||
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
|
||||
SocialiteWasCalled::class => [
|
||||
// ... other providers
|
||||
\SocialiteProviders\Discord\DiscordExtendSocialite::class.'@handle',
|
||||
DiscordExtendSocialite::class.'@handle',
|
||||
],
|
||||
'App\Events\ApplicationApprovedEvent' => [
|
||||
'App\Listeners\PromoteUser',
|
||||
|
Reference in New Issue
Block a user