diff --git a/Web-Application/Manually/app/Http/Controllers/Auth/LoginController.php b/Web-Application/Manually/app/Http/Controllers/Auth/LoginController.php index 1433550..bbc4ff2 100644 --- a/Web-Application/Manually/app/Http/Controllers/Auth/LoginController.php +++ b/Web-Application/Manually/app/Http/Controllers/Auth/LoginController.php @@ -34,12 +34,12 @@ class LoginController extends Controller $verification = $response->json(); if (!isset($verification['success']) || $verification['success'] !== true) { - return back()->withErrors(['error' => 'captcha is not correct']); + return back()->withErrors(['error' => 'The captcha is incorrect.']); } if (!Auth::attempt($credentials, $remember)) { return back()->withErrors([ - 'email' => 'The provided credentials do not match our records.', + 'email' => 'These credentials do not match our records.', ])->onlyInput('email'); } @@ -58,11 +58,11 @@ class LoginController extends Controller 'is_mobile' => $agent->isMobile() ]); - return redirect()->route('dashboard')->with("success", "login successfully"); + return redirect()->route('dashboard')->with("success", "Logged in successfully."); } catch (\Exception $e) { return redirect() ->route('login.create') - ->with('error', 'not login please try again' . $e->getMessage()); + ->with('error', 'Login failed. Please try again. ' . $e->getMessage()); } } } diff --git a/Web-Application/Manually/app/Http/Controllers/Auth/RegisterController.php b/Web-Application/Manually/app/Http/Controllers/Auth/RegisterController.php index 106189f..53d00c1 100644 --- a/Web-Application/Manually/app/Http/Controllers/Auth/RegisterController.php +++ b/Web-Application/Manually/app/Http/Controllers/Auth/RegisterController.php @@ -42,11 +42,11 @@ class RegisterController extends Controller 'is_mobile' => $agent->isMobile() ]); - return redirect()->route('dashboard')->with('success', 'register successfully'); + return redirect()->route('dashboard')->with('success', 'Registered successfully.'); } catch (\Exception $e) { return redirect() ->route('register.create') - ->with('error', 'not register please try again' . $e->getMessage()); + ->with('error', 'Registration failed. Please try again. ' . $e->getMessage()); } } } diff --git a/Web-Application/Manually/resources/views/auth/register.blade.php b/Web-Application/Manually/resources/views/auth/register.blade.php index 5a4376d..70b2eec 100644 --- a/Web-Application/Manually/resources/views/auth/register.blade.php +++ b/Web-Application/Manually/resources/views/auth/register.blade.php @@ -39,7 +39,7 @@