diff --git a/src/ChangePassword.tsx b/src/ChangePassword.tsx index bf1b040b..03dd40df 100644 --- a/src/ChangePassword.tsx +++ b/src/ChangePassword.tsx @@ -26,6 +26,7 @@ import { type AxiosError, isAxiosError } from 'axios' import { AuditType } from './utils/activity-types' import { trackEvent } from './utils/audit' import { encryptData } from './utils/encryption' +import FlexBox from './components/FlexBox' interface ChangePasswordForm { currentPassword: string @@ -63,6 +64,10 @@ const ChangePassword = ({ resolver: yupResolver(schema) }) + const handleClose = (): void => { + setOpenChangePasswordModal(false) + } + const { notify } = useContext(NotificationContext) const onSubmit = async (data: ChangePasswordForm): Promise => { @@ -239,9 +244,17 @@ const ChangePassword = ({ ) }} /> - + + + + diff --git a/src/resources/users/UserShow.tsx b/src/resources/users/UserShow.tsx index c4287412..82ebb89a 100644 --- a/src/resources/users/UserShow.tsx +++ b/src/resources/users/UserShow.tsx @@ -204,7 +204,7 @@ const EditPassword = ({ handleClose, audit }: Props): React.ReactElement => { p: 4 }}> - Edit User Password + Provide Temporary Password The password should include these items: @@ -214,6 +214,8 @@ const EditPassword = ({ handleClose, audit }: Props): React.ReactElement => {
  • At least one digit
  • At least one special character
  • + The temporary password will be valid for one hour. If not updated in + that time a new one must be provided.