X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/9249addb5c458d30a5b06ff1ccc3a4e1b5d29acb..refs/pull/2902/head:/app/Http/Controllers/Auth/RegisterController.php diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 4008439bc..bd1ffeac2 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -6,6 +6,7 @@ use BookStack\Auth\Access\LoginService; use BookStack\Auth\Access\RegistrationService; use BookStack\Auth\Access\SocialAuthService; use BookStack\Auth\User; +use BookStack\Exceptions\StoppedAuthenticationException; use BookStack\Exceptions\UserRegistrationException; use BookStack\Http\Controllers\Controller; use Illuminate\Foundation\Auth\RegistersUsers; @@ -47,8 +48,7 @@ class RegisterController extends Controller SocialAuthService $socialAuthService, RegistrationService $registrationService, LoginService $loginService - ) - { + ) { $this->middleware('guest'); $this->middleware('guard:standard'); @@ -93,6 +93,7 @@ class RegisterController extends Controller * Handle a registration request for the application. * * @throws UserRegistrationException + * @throws StoppedAuthenticationException */ public function postRegister(Request $request) {