From d6640eacec9b92a4aab9708354c4af01526624c3 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Tue, 7 Apr 2020 19:22:50 -0400 Subject: [PATCH] Require new password --- .../Requests/Api/Client/Account/UpdatePasswordRequest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Requests/Api/Client/Account/UpdatePasswordRequest.php b/app/Http/Requests/Api/Client/Account/UpdatePasswordRequest.php index f52b71297..d279bd0a6 100644 --- a/app/Http/Requests/Api/Client/Account/UpdatePasswordRequest.php +++ b/app/Http/Requests/Api/Client/Account/UpdatePasswordRequest.php @@ -34,6 +34,9 @@ class UpdatePasswordRequest extends ClientApiRequest { $rules = User::getRulesForUpdate($this->user()); - return ['password' => array_merge($rules['password'], ['confirmed'])]; + return [ + 'password' => array_merge($rules['password'], ['confirmed']), + 'new_password' => 'required|string', + ]; } }