diff --git a/.env.example b/.env.example index 6665c4b1a..6e00765ba 100644 --- a/.env.example +++ b/.env.example @@ -22,6 +22,7 @@ MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null +MAIL_FROM=you@example.com API_PREFIX=api API_VERSION=v1 diff --git a/app/Http/Controllers/Auth/PasswordController.php b/app/Http/Controllers/Auth/PasswordController.php index 2bdbcc6e3..997ee32db 100644 --- a/app/Http/Controllers/Auth/PasswordController.php +++ b/app/Http/Controllers/Auth/PasswordController.php @@ -19,6 +19,7 @@ class PasswordController extends Controller */ use ResetsPasswords; + protected $redirectTo = '/'; /** diff --git a/app/Http/Routes/AuthRoutes.php b/app/Http/Routes/AuthRoutes.php index 314ab3dc7..0d50f2c8d 100644 --- a/app/Http/Routes/AuthRoutes.php +++ b/app/Http/Routes/AuthRoutes.php @@ -35,26 +35,21 @@ class AuthRoutes { // Show Password Reset Form $router->get('password', [ - 'as' => 'auth.password', 'uses' => 'Auth\PasswordController@getEmail' ]); // Handle Password Reset $router->post('password', [ - 'as' => 'auth.password.submit', 'uses' => 'Auth\PasswordController@postEmail' - ], function () { - return redirect('auth/password')->with('sent', true); - }); + ]); // Show Verification Checkpoint - $router->get('password/verify/{token}', [ - 'as' => 'auth.verify', + $router->get('password/reset/{token}', [ 'uses' => 'Auth\PasswordController@getReset' ]); // Handle Verification - $router->post('password/verify', [ + $router->post('password/reset', [ 'uses' => 'Auth\PasswordController@postReset' ]); diff --git a/config/mail.php b/config/mail.php index a22807e71..07ea9c147 100644 --- a/config/mail.php +++ b/config/mail.php @@ -54,7 +54,7 @@ return [ | */ - 'from' => ['address' => null, 'name' => null], + 'from' => ['address' => env('MAIL_FROM'), 'name' => env('MAIL_FROM_NAME', 'Pterodactyl Panel')], /* |-------------------------------------------------------------------------- diff --git a/resources/views/auth/password.blade.php b/resources/views/auth/password.blade.php index 9e6d3e01b..4e12df292 100644 --- a/resources/views/auth/password.blade.php +++ b/resources/views/auth/password.blade.php @@ -10,7 +10,7 @@ @endsection @section('content') -