diff --git a/app/Domain/Users/Controllers/EditOwn.php b/app/Domain/Users/Controllers/EditOwn.php index 7739decea..e862e4edf 100644 --- a/app/Domain/Users/Controllers/EditOwn.php +++ b/app/Domain/Users/Controllers/EditOwn.php @@ -202,6 +202,7 @@ public function post(): Response ]; if (password_verify($_POST['currentPassword'], $values['password'])) { + if ($_POST['newPassword'] == $_POST['confirmPassword']) { if ($this->userService->checkPasswordStrength($_POST['newPassword'])) { $values['password'] = $_POST['newPassword']; @@ -307,7 +308,7 @@ public function post(): Response $this->userRepo->editOwn($values, $this->userId); // Storing option messagefrequency - $this->settingsService->saveSetting('usersettings.'.$this->userId.'.messageFrequency', (int) $_POST['messagesfrequency']); + $this->settingsService->saveSetting('usersettings.'.$this->userId.'.messageFrequency', (int) $_POST['messagesfrequency'] ?? 3600); $this->tpl->setNotification($this->language->__('notifications.changed_profile_settings_successfully'), 'success', 'profilesettings_updated'); } diff --git a/app/Domain/Users/Templates/editOwn.blade.php b/app/Domain/Users/Templates/editOwn.blade.php index 2f2ed9b19..65bb61ada 100644 --- a/app/Domain/Users/Templates/editOwn.blade.php +++ b/app/Domain/Users/Templates/editOwn.blade.php @@ -288,7 +288,7 @@