diff --git a/web/app/Http/Controllers/Auth/NewPasswordController.php b/web/app/Http/Controllers/Auth/NewPasswordController.php
index 1df8e21..aae4c25 100644
--- a/web/app/Http/Controllers/Auth/NewPasswordController.php
+++ b/web/app/Http/Controllers/Auth/NewPasswordController.php
@@ -35,7 +35,6 @@ class NewPasswordController extends Controller
{
$request->validate([
'token' => ['required'],
- 'email' => ['required', 'email'],
'password' => ['required', 'confirmed', Rules\Password::defaults()],
]);
@@ -43,7 +42,7 @@ class NewPasswordController extends Controller
// will update the password on an actual user model and persist it to the
// database. Otherwise we will parse the error and return the response.
$status = Password::reset(
- $request->only('email', 'password', 'password_confirmation', 'token'),
+ $request->only('password', 'password_confirmation', 'token'),
function ($user) use ($request) {
$user->forceFill([
'password' => Hash::make($request->password),
@@ -59,7 +58,6 @@ class NewPasswordController extends Controller
// redirect them back to where they came from with their error message.
return $status == Password::PASSWORD_RESET
? redirect()->route('login')->with('status', __($status))
- : back()->withInput($request->only('email'))
- ->withErrors(['email' => __($status)]);
+ : back()->withErrors(['status' => __($status)]);
}
}
diff --git a/web/resources/views/auth/forgot-password.blade.php b/web/resources/views/auth/forgot-password.blade.php
index 0642fa8..b7e247d 100644
--- a/web/resources/views/auth/forgot-password.blade.php
+++ b/web/resources/views/auth/forgot-password.blade.php
@@ -1,36 +1,41 @@
-
Enter the email address associated with your account and we'll send you a reset link.
+ + +