Commit 164f10b9 authored by Chenu Denis's avatar Chenu Denis

[fix] Show passwordReset at on if passwordCrypt is on

parent 563a3d29
......@@ -6,7 +6,7 @@
* @copyright 2017 Denis Chenu <https://www.sondages.pro>
* @copyright 2017 Limesurvey Consulting <https://survey-consulting.com/>
* @license AGPL v3
* @version 0.3.0
* @version 0.3.1
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
......@@ -155,7 +155,7 @@ class extraRegisterPassword extends \ls\pluginmanager\PluginBase
'type' => 'boolean',
'label' => $this->_translate("Reset password."),
'help' => $this->_translate("If user ask a password reminder, reset the password. Using token length of survey for length."),
'current' => $this->get('passwordReset', 'Survey', $surveyId,0),
'current' => ($this->get('passwordCrypt', 'Survey', $surveyId,0) || $this->get('passwordReset', 'Survey', $surveyId,0)),
),
);
$event->set("surveysettings.{$this->id}", array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment