This commit is contained in:
alf 2022-01-09 22:50:31 +03:00
parent e0d4048bcf
commit 07027df181
2 changed files with 7 additions and 1 deletions

View File

@ -18,7 +18,7 @@ $config['pr_fields'] = [
$config['pr_admin_email'] = 'postmaster@your.domain.com';
// Use secret question/answer to confirmation password recovery
$config['pr_use_question'] = true;
$config['pr_use_question'] = false;
// Use message with code to confirmation password recovery
$config['pr_use_confirm_code'] = true;

View File

@ -324,6 +324,12 @@ class password_recovery extends rcube_plugin {
}
}
}
if (!$this->rc->config->get('pr_use_question')) {
unset($new_fields['question']);
unset($new_fields['answer']);
}
$p['form']['addressing']['content'] = $new_fields;
if($this->user['username']){