From ca1a39462c3e6ea219d86f89d4a2f52390499e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Roy?= Date: Fri, 10 Jan 2020 09:16:18 +0100 Subject: [PATCH] No longer require password field for onUpdate handler (#420) Fixes #421. --- components/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Account.php b/components/Account.php index ca18422d..d50a6666 100644 --- a/components/Account.php +++ b/components/Account.php @@ -419,7 +419,7 @@ public function onUpdate() /* * Password has changed, reauthenticate the user */ - if (strlen($data['password'])) { + if (array_key_exists('password', $data) && strlen($data['password'])) { Auth::login($user->reload(), true); }