]> BookStack Code Mirror - bookstack/blobdiff - app/Auth/Access/RegistrationService.php
Missed a variable when updating LdapService.
[bookstack] / app / Auth / Access / RegistrationService.php
index b85f7ffd83c24a0aa84b97997ee75f41735fc3b6..ecc92c117d46ccb84de50a8c2defc2c75322a3a7 100644 (file)
@@ -57,7 +57,7 @@ class RegistrationService
         // Ensure user does not already exist
         $alreadyUser = !is_null($this->userRepo->getByEmail($userEmail));
         if ($alreadyUser) {
-            throw new UserRegistrationException(trans('errors.error_user_exists_different_creds', ['email' => $userEmail]));
+            throw new UserRegistrationException(trans('errors.error_user_exists_different_creds', ['email' => $userEmail]), '/login');
         }
 
         // Create the user