Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 81... Línea 81...
81
        $mform->addElement('password', 'password2', $strpasswordagain,
81
        $mform->addElement('password', 'password2', $strpasswordagain,
82
            ['maxlength' => MAX_PASSWORD_CHARACTERS]);
82
            ['maxlength' => MAX_PASSWORD_CHARACTERS]);
83
        $mform->addRule('password2', get_string('required'), 'required', null, 'client');
83
        $mform->addRule('password2', get_string('required'), 'required', null, 'client');
84
        $mform->setType('password2', PARAM_RAW);
84
        $mform->setType('password2', PARAM_RAW);
Línea -... Línea 85...
-
 
85
 
-
 
86
        $mform->addElement('checkbox', 'logoutothersessions', get_string('logoutothersessions', 'report_usersessions'));
-
 
87
        $mform->addHelpButton('logoutothersessions', 'logoutothersessions', 'report_usersessions');
-
 
88
        $mform->setDefault('logoutothersessions', 1);
-
 
89
        if (!empty($CFG->passwordchangelogout)) {
-
 
90
            $mform->getElement('logoutothersessions')->freeze();
-
 
91
        }
85
 
92
 
86
        // Hook for plugins to extend form definition.
93
        // Hook for plugins to extend form definition.
87
        $user = $this->_customdata;
94
        $user = $this->_customdata;
Línea 88... Línea 95...
88
        core_login_extend_set_password_form($mform, $user);
95
        core_login_extend_set_password_form($mform, $user);