diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 6263345..804edca 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -135,7 +135,12 @@ class UserController extends Controller public function changePassword(Request $request) { $validated = $request->validate([ - 'password' => 'required|confirmed|min:8|regex:/[a-z]/|regex:/[A-Z]/|regex:/[0-9]/' + 'current_password' => 'password', + 'password' => 'required|confirmed|min:8|regex:/.*[a-z].*/|regex:/.*[A-Z].*/|regex:/.*[0-9].*/' ]); + + $user = Auth::user(); + $user->password = Hash::make($request->password); + $user->save(); } } diff --git a/resources/js/icons/plus-fill.vue b/resources/js/icons/plus-fill.vue new file mode 100644 index 0000000..4a86388 --- /dev/null +++ b/resources/js/icons/plus-fill.vue @@ -0,0 +1,5 @@ + diff --git a/resources/js/icons/plus.vue b/resources/js/icons/plus.vue new file mode 100644 index 0000000..b917ed6 --- /dev/null +++ b/resources/js/icons/plus.vue @@ -0,0 +1,6 @@ + diff --git a/resources/js/panel/panel.vue b/resources/js/panel/panel.vue index 2c79099..c12c746 100644 --- a/resources/js/panel/panel.vue +++ b/resources/js/panel/panel.vue @@ -26,7 +26,6 @@
-
New

Pending Orders