ResetPasswordController.php 982 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace App\Http\Controllers\Auth;
  3. use App\Http\Controllers\Controller;
  4. use Illuminate\Foundation\Auth\ResetsPasswords;
  5. use App\Exceptions\UnsupportedWithReverseProxyException;
  6. class ResetPasswordController extends Controller
  7. {
  8. /*
  9. |--------------------------------------------------------------------------
  10. | Password Reset Controller
  11. |--------------------------------------------------------------------------
  12. |
  13. | This controller is responsible for handling password reset requests
  14. | and uses a simple trait to include this behavior. You're free to
  15. | explore this trait and override any methods you wish to tweak.
  16. |
  17. */
  18. use ResetsPasswords;
  19. /**
  20. * Create a new controller instance.
  21. */
  22. public function __construct()
  23. {
  24. $authGuard = config('auth.defaults.guard');
  25. if ($authGuard === 'reverse-proxy-guard') {
  26. throw new UnsupportedWithReverseProxyException();
  27. }
  28. }
  29. }