$error = "This password reset link has expired"; } } if($error == '' && isset($_POST['reset_password'])) { $sql = " update users_reset_pass set linedate_used = now() where uuid = '".sql_friendly($reset_uuid['reset'])."' "; simple_query($sql); mrr_update_account_pass($row_reset['user_id'], $row_reset['username'], $_POST['reset_password'], $_POST['reset_password_confirm']); header('Location: login.php?resetpassdone=1'); die; } } confirm_secure_page(); $error_email = ''; $error_new=''; $email_success = 0; $new_success = 0; $delay_failed_login=(int) $defaultsarray['failed_login_delay'];
function save_user_pass() { $rslt=mrr_update_account_pass($_POST['id'],$_POST['user'],$_POST['pass'],$_POST['confirm']); display_xml_response("<rslt>".$rslt."</rslt>"); }