Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lang/en/enrol_arlo.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
$string['apipassword_desc'] = 'Forgot your password? <a title="{$a->title}" href="{$a->url}" target="_blank">Learn how to reset it.</a>';
$string['arloauthconfig'] = 'Arlo authentication method';
$string['arloauthconfig_desc'] = 'Select the authentication method to use for Arlo enrolments.';
$string['enable_arlo_auth_config'] = 'Enable Arlo authentication configuration';
$string['enable_arlo_auth_config_desc'] = 'Show options for selecting the authentication method used for Arlo enrolments and its password handling.';
$string['arloconnection'] = 'Arlo connection';
$string['arlosettings'] = 'Arlo settings';
$string['arlocontact'] = 'Arlo contact';
Expand Down
6 changes: 5 additions & 1 deletion settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@
get_string('webhookstatus', 'enrol_arlo'),
new moodle_url('/enrol/arlo/admin/webhook_status.php')));

$name = get_string('enable_arlo_auth_config', 'enrol_arlo');
$description = get_string('enable_arlo_auth_config_desc', 'enrol_arlo');
$settings->add(new admin_setting_configcheckbox('enable_arlo_auth_config', $name, $description, 0));

if (!empty($CFG->enable_arlo_auth_config)) {
$name = get_string('arloauthconfig', 'enrol_arlo');
$description = get_string('arloauthconfig_desc', 'enrol_arlo');
Expand All @@ -190,7 +194,7 @@
// Some auth methods doesn't use a password inside Moodle, so it may be better to disable the force password change feature.
$name = get_string('disableforcepasswordchange', 'enrol_arlo');
$description = get_string('disableforcepasswordchange_desc', 'enrol_arlo');
$settings->add(new admin_setting_configcheckbox('enrol_arlo/disableforcepasswordchange', $name, $description, 0));
$settings->add(new admin_setting_configcheckbox('enrol_arlo/disableforcepasswordchange', $name, $description, 1));
}
$settings = null;
}
Loading