import React from 'react'; import { ValidatorForm } from 'react-material-ui-form-validator'; import { Box, Typography } from '@material-ui/core'; import SaveIcon from '@material-ui/icons/Save'; import { withAuthenticatedContext, AuthenticatedContextProps } from '../authentication'; import { RestFormProps, PasswordValidator, FormActions, FormButton } from '../components'; import { SecuritySettings } from './types'; type SecuritySettingsFormProps = RestFormProps & AuthenticatedContextProps; class SecuritySettingsForm extends React.Component { onSubmit = () => { this.props.saveData(); this.props.authenticatedContext.refresh(); } render() { const { data, handleValueChange } = this.props; return ( The Super User password is used to sign authentication tokens and is also the Console's `su` password. If you modify this all users will be signed out. } variant="contained" color="primary" type="submit"> Save ); } } export default withAuthenticatedContext(SecuritySettingsForm);