Update to Laravel 5.3
[BREAKING] — REMOVES REMOTE API A new API will need to be implemented properly using the new Laravel Passport OAuth2 system. DingoAPI was becoming too unstable and development wasn’t really moving along enough to continue to rely on it.
This commit is contained in:
parent
b274b40e01
commit
afb5011fbe
37 changed files with 732 additions and 1596 deletions
|
@ -28,6 +28,7 @@ use Illuminate\Routing\Router;
|
|||
use Request;
|
||||
use Pterodactyl\Models\User as User;
|
||||
|
||||
use Auth;
|
||||
class AuthRoutes {
|
||||
|
||||
public function map(Router $router) {
|
||||
|
@ -42,39 +43,39 @@ class AuthRoutes {
|
|||
// Display Login Page
|
||||
$router->get('login', [
|
||||
'as' => 'auth.login',
|
||||
'uses' => 'Auth\AuthController@getLogin'
|
||||
'uses' => 'Auth\LoginController@showLoginForm'
|
||||
]);
|
||||
|
||||
// Handle Login
|
||||
$router->post('login', [
|
||||
'uses' => 'Auth\AuthController@postLogin'
|
||||
'uses' => 'Auth\LoginController@login'
|
||||
]);
|
||||
|
||||
// Determine if we need to ask for a TOTP Token
|
||||
$router->post('login/totp', [
|
||||
'uses' => 'Auth\AuthController@checkTotp'
|
||||
'uses' => 'Auth\LoginController@checkTotp'
|
||||
]);
|
||||
|
||||
// Show Password Reset Form
|
||||
$router->get('password', [
|
||||
'as' => 'auth.password',
|
||||
'uses' => 'Auth\PasswordController@getEmail'
|
||||
'uses' => 'Auth\ForgotPasswordController@showLinkRequestForm'
|
||||
]);
|
||||
|
||||
// Handle Password Reset
|
||||
$router->post('password', [
|
||||
'uses' => 'Auth\PasswordController@postEmail'
|
||||
'uses' => 'Auth\ForgotPasswordController@sendResetLinkEmail'
|
||||
]);
|
||||
|
||||
// Show Verification Checkpoint
|
||||
$router->get('password/reset/{token}', [
|
||||
'as' => 'auth.reset',
|
||||
'uses' => 'Auth\PasswordController@getReset'
|
||||
'uses' => 'Auth\ResetPasswordController@showResetForm'
|
||||
]);
|
||||
|
||||
// Handle Verification
|
||||
$router->post('password/reset', [
|
||||
'uses' => 'Auth\PasswordController@postReset'
|
||||
'uses' => 'Auth\ResetPasswordController@reset'
|
||||
]);
|
||||
|
||||
});
|
||||
|
@ -83,7 +84,7 @@ class AuthRoutes {
|
|||
$router->get('auth/logout', [
|
||||
'as' => 'auth.logout',
|
||||
'middleware' => 'auth',
|
||||
'uses' => 'Auth\AuthController@getLogout'
|
||||
'uses' => 'Auth\LoginController@logout'
|
||||
]);
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue