Escreva o seu endereço de email para reconfigurar a sua senha e recebê-la via correio eletrônico.
Endereço de email:
der(get_string("passwordconfirmchange"), get_string("passwordconfirmchange")); if (!empty($user_email)) notice(get_string('emailpasswordconfirmsent', '', $user_email), "$CFG->wwwroot/"); if (!empty($user_email_co)) notice(get_string('emailpasswordconfirmsent', '', $user_email_co), "$CFG->wwwroot/"); } } if (empty($frm->email)) { if ($username = get_moodle_cookie() ) { if ($_SESSION['tipo_email']=='oficial'){ $frm->email = get_field("user", "email", "username", "$username"); //echo "oficial"; } else { $frm->email = get_field("user", "email_co", "username", "$username"); //echo "back"; } } } print_header(get_string("senddetails"), get_string("senddetails"), "wwwroot/login/index.php\">".get_string("login")." -> ".get_string("senddetails"), "form.email"); include("forgot_password_form.html"); print_footer(); /****************************************************************************** * FUNCTIONS *****************************************************************************/ function validate_form($frm, &$err) { if (empty($frm->email)){ $err->email = get_string("missingemail"); } else if (! validate_email($frm->email)){ $err->email = get_string("invalidemail"); } else if (! record_exists("user", "email", $frm->email)){ $_SESSION['tipo_email']='back'; if (! record_exists("user", "email_co", $frm->email)){ $err->email = get_string("nosuchemail"); } }else { $_SESSION['tipo_email']='oficial'; } } ?>