2015-12-06 18:58:49 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Routes;
|
|
|
|
|
|
|
|
use Illuminate\Routing\Router;
|
|
|
|
|
|
|
|
class AuthRoutes {
|
|
|
|
|
|
|
|
public function map(Router $router) {
|
|
|
|
$router->group(['prefix' => 'auth'], function () use ($router) {
|
|
|
|
$router->get('login', [ 'as' => 'auth.login', 'uses' => 'Auth\AuthController@getLogin' ]);
|
|
|
|
$router->post('login', [ 'as' => 'auth.login.submit', 'uses' => 'Auth\AuthController@postLogin' ]);
|
|
|
|
|
2015-12-09 00:28:49 +00:00
|
|
|
$router->get('password', [ 'as' => 'auth.password', 'uses' => 'Auth\PasswordController@getEmail' ]);
|
|
|
|
$router->post('password', [ 'as' => 'auth.password.submit', 'uses' => 'Auth\PasswordController@postEmail' ], function () {
|
|
|
|
return redirect('auth/password')->with('sent', true);
|
|
|
|
});
|
|
|
|
|
|
|
|
$router->get('password/verify/{token}', [ 'as' => 'auth.verify', 'uses' => 'Auth\PasswordController@getReset' ]);
|
|
|
|
$router->post('password/verify', [ 'as' => 'auth.verify.submit', 'uses' => 'Auth\PasswordController@postReset' ]);
|
|
|
|
|
2015-12-06 18:58:49 +00:00
|
|
|
$router->get('logout', [ 'as' => 'auth.logout', 'uses' => 'Auth\AuthController@getLogout' ]);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|