v1.1
This commit is contained in:
parent
e0d4048bcf
commit
07027df181
|
@ -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;
|
||||
|
|
|
@ -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']){
|
||||
|
|
Loading…
Reference in New Issue