]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/LoginController.php
Add APP_LOGGING
[bookstack] / app / Http / Controllers / Auth / LoginController.php
index c9d6a5496ef8c99d3f2fd80feaa835641d22ec34..e7eeb9bc1629d2ed94441458f6435e0b22ff8982 100644 (file)
@@ -87,7 +87,7 @@ class LoginController extends Controller
             // Check for users with same email already
             $alreadyUser = $user->newQuery()->where('email', '=', $user->email)->count() > 0;
             if ($alreadyUser) {
-                throw new AuthException('A user with the email ' . $user->email . ' already exists but with different credentials.');
+                throw new AuthException(trans('errors.error_user_exists_different_creds', ['email' => $user->email]));
             }
 
             $user->save();