Línea 68... |
Línea 68... |
68 |
$mform->addElement('password', 'newpassword2', get_string('newpassword').' ('.get_String('again').')',
|
68 |
$mform->addElement('password', 'newpassword2', get_string('newpassword').' ('.get_String('again').')',
|
69 |
['autocomplete' => 'new-password', 'maxlength' => MAX_PASSWORD_CHARACTERS]);
|
69 |
['autocomplete' => 'new-password', 'maxlength' => MAX_PASSWORD_CHARACTERS]);
|
70 |
$mform->addRule('newpassword2', get_string('required'), 'required', null, 'client');
|
70 |
$mform->addRule('newpassword2', get_string('required'), 'required', null, 'client');
|
71 |
$mform->setType('newpassword2', PARAM_RAW);
|
71 |
$mform->setType('newpassword2', PARAM_RAW);
|
Línea -... |
Línea 72... |
- |
|
72 |
|
- |
|
73 |
$mform->addElement('checkbox', 'logoutothersessions', get_string('logoutothersessions', 'report_usersessions'));
|
- |
|
74 |
$mform->addHelpButton('logoutothersessions', 'logoutothersessions', 'report_usersessions');
|
- |
|
75 |
$mform->setDefault('logoutothersessions', 1);
|
- |
|
76 |
if (!empty($CFG->passwordchangelogout)) {
|
- |
|
77 |
$mform->getElement('logoutothersessions')->freeze();
|
- |
|
78 |
}
|
72 |
|
79 |
|
73 |
if (empty($CFG->passwordchangetokendeletion) and !empty(webservice::get_active_tokens($USER->id))) {
|
80 |
if (!empty(webservice::get_active_tokens($USER->id))) {
|
74 |
$mform->addElement('advcheckbox', 'signoutofotherservices', get_string('signoutofotherservices'));
|
81 |
$mform->addElement('advcheckbox', 'signoutofotherservices', get_string('signoutofotherservices'));
|
75 |
$mform->addHelpButton('signoutofotherservices', 'signoutofotherservices');
|
82 |
$mform->addHelpButton('signoutofotherservices', 'signoutofotherservices');
|
- |
|
83 |
$mform->setDefault('signoutofotherservices', 1);
|
- |
|
84 |
if (!empty($CFG->passwordchangetokendeletion)) {
|
- |
|
85 |
$mform->getElement('signoutofotherservices')->freeze();
|
76 |
$mform->setDefault('signoutofotherservices', 1);
|
86 |
}
|
Línea 77... |
Línea 87... |
77 |
}
|
87 |
}
|
78 |
|
88 |
|
79 |
// hidden optional params
|
89 |
// hidden optional params
|