Finalize login page!

This commit is contained in:
Dane Everitt 2018-04-08 15:46:32 -05:00
parent d63624f607
commit 6d970a4cc3
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
10 changed files with 40 additions and 16 deletions

View file

@ -4,10 +4,23 @@ namespace Pterodactyl\Http\Controllers\Auth;
use Illuminate\Http\Request;
use Illuminate\Http\JsonResponse;
use Illuminate\Contracts\View\View;
use Pterodactyl\Exceptions\Repository\RecordNotFoundException;
class LoginController extends AbstractLoginController
{
/**
* Handle all incoming requests for the authentication routes and render the
* base authentication view component. Vuejs will take over at this point and
* turn the login area into a SPA.
*
* @return \Illuminate\Contracts\View\View
*/
public function index(): View
{
return view('templates/auth.core');
}
/**
* Handle a login request to the application.
*

View file

@ -7,6 +7,7 @@ use Cache;
use Pterodactyl\Models\User;
use Pterodactyl\Models\Server;
use Pterodactyl\Models\Subuser;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Schema;
use Igaster\LaravelTheme\Facades\Theme;
use Illuminate\Support\ServiceProvider;
@ -21,6 +22,7 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
Blade::doubleEncode();
Schema::defaultStringLength(191);
User::observe(UserObserver::class);