exit(0); } break; case "recreatehotptoken": $username = $_REQUEST["username"]; $myAC->addUser($username, "HOTP"); header("Location: ?message=" . urlencode("seemed to work?")); break; case "recreatetotptoken": $username = $_REQUEST["username"]; $myAC->addUser($username, "TOTP"); header("Location: ?message=" . urlencode("seemed to work?")); break; case "deletetoken": $username = $_REQUEST["username"]; $myAC->deleteUserToken($username); header("Location: ?message=" . urlencode("seemed to work?")); break; case "edituser": $username = $_REQUEST["username"]; if ($_REQUEST["original_real"] != $_REQUEST["realname"]) { $myAC->setUserRealName($username, $_REQUEST["realname"]); } if ($_REQUEST["password"] != "") { if ($_REQUEST["password"] != $_REQUEST["password_conf"]) { header("Location: ?message=confirmfalse"); } else { $myAC->setUserPass($username, $_REQUEST["password"]); } } break;