diff --git a/src/components/UsersSections/UsersAccountSettings.tsx b/src/components/UsersSections/UsersAccountSettings.tsx index 3813bec0..3a3f4c3a 100644 --- a/src/components/UsersSections/UsersAccountSettings.tsx +++ b/src/components/UsersSections/UsersAccountSettings.tsx @@ -6,9 +6,6 @@ import { FlexItem, Form, FormGroup, - TextInput, - DropdownItem, - CalendarMonth, Button, } from "@patternfly/react-core"; // Data types @@ -41,6 +38,7 @@ import DeletionConfirmationModal from "../modals/DeletionConfirmationModal"; // Form import IpaCheckbox from "../Form/IpaCheckbox"; import IpaSelect from "../Form/IpaSelect"; +import IpaTextInput from "../Form/IpaTextInput"; // Hooks import useCalendar from "src/hooks/useCalendar"; // ipaObject utils @@ -261,37 +259,6 @@ const UsersAccountSettings = (props: PropsToUsersAccountSettings) => { "krbprincipalexpiration" ); - // TODO: This state variables should update the user data via the IPA API (`user_mod`) - const [userLogin] = useState(props.user.uid); - const [password] = useState(""); - const [passwordExpiration] = useState(""); - const [uid, setUid] = useState(props.user.uidnumber); - const [gid, setGid] = useState(""); - const [homeDirectory, setHomeDirectory] = useState("/home/" + userLogin); - const [loginShell, setLoginShell] = useState("/bin/sh"); - const [radiusUsername, setRadiusUsername] = useState(""); - const [idpIdentifier, setIdpIdentifier] = useState(""); - - // UID - const uidInputHandler = (value: string) => { - setUid(value); - }; - - // GID - const gidInputHandler = (value: string) => { - setGid(value); - }; - - // Home directory - const homeDirectoryInputHandler = (value: string) => { - setHomeDirectory(value); - }; - - // Login shell - const loginShellInputHandler = (value: string) => { - setLoginShell(value); - }; - // SSH public keys // -Text area const [textAreaSshPublicKeysValue, setTextAreaSshPublicKeysValue] = @@ -533,16 +500,6 @@ const UsersAccountSettings = (props: PropsToUsersAccountSettings) => { , ]; - // RADIUS username - const radiusUsernameInputHandler = (value: string) => { - setRadiusUsername(value); - }; - - // Track changes on External IdP user identifier textbox field - const idpIdentifierInputHandler = (value: string) => { - setIdpIdentifier(value); - }; - // Messages for the popover const certificateMappingDataMessage = () => (
@@ -576,56 +533,51 @@ const UsersAccountSettings = (props: PropsToUsersAccountSettings) => {
- - - - - { -
@@ -695,13 +646,12 @@ const UsersAccountSettings = (props: PropsToUsersAccountSettings) => {
- @@ -823,13 +773,12 @@ const UsersAccountSettings = (props: PropsToUsersAccountSettings) => { label="Radius proxy username" fieldId="radius-proxy-username" > - { label="External IdP user identifier" fieldId="external-idp-user-identifier" > -