Save settings on key verification to prevent data loss

[MAILPOET-2991]
This commit is contained in:
Jan Jakeš
2020-06-25 10:25:15 +02:00
committed by Veljko V
parent 94cabf2100
commit 136b1d4588
4 changed files with 10 additions and 3 deletions

View File

@ -73,7 +73,11 @@ class Settings extends APIEndpoint {
$this->onSettingsChange($oldSettings, $this->settings->getAll());
$this->bridge->onSettingsSave($settings);
// when pending approval, leave this to cron / Key Activation tab logic
if (!$this->servicesChecker->isMailPoetAPIKeyPendingApproval()) {
$this->bridge->onSettingsSave($settings);
}
$this->authorizedEmailsController->onSettingsSave($settings);
if ($signupConfirmation !== $this->settings->get('signup_confirmation.enabled')) {
Form::updateSuccessMessages();