@@ -34,7 +34,7 @@ class AuthController extends Controller
|
||||
if (!$this->captchaIsValid($request, self::LOGIN_CAPTCHA_CONTEXT)) {
|
||||
return back()
|
||||
->withInput($request->only('email', 'remember'))
|
||||
->withErrors(['captcha' => 'Неверный ответ на капчу.']);
|
||||
->withErrors(['captcha' => __('Неверный ответ на капчу.')]);
|
||||
}
|
||||
|
||||
$credentials = [
|
||||
@@ -47,7 +47,7 @@ class AuthController extends Controller
|
||||
if (!Auth::attempt($credentials, $remember)) {
|
||||
return back()
|
||||
->withInput($request->only('email', 'remember'))
|
||||
->withErrors(['email' => 'Неверный email или пароль.']);
|
||||
->withErrors(['email' => __('Неверный email или пароль.')]);
|
||||
}
|
||||
|
||||
$request->session()->regenerate();
|
||||
@@ -75,7 +75,7 @@ class AuthController extends Controller
|
||||
if (!$this->captchaIsValid($request, self::REGISTER_CAPTCHA_CONTEXT)) {
|
||||
return back()
|
||||
->withInput($request->only('name', 'email'))
|
||||
->withErrors(['captcha' => 'Неверный ответ на капчу.']);
|
||||
->withErrors(['captcha' => __('Неверный ответ на капчу.')]);
|
||||
}
|
||||
|
||||
$user = User::create([
|
||||
|
||||
Reference in New Issue
Block a user