Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>
Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
agagancarczyk 2024-02-20 10:08:00 +00:00 committed by GitHub
parent e31257a314
commit 62c402872a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -69,6 +69,7 @@ export const UserForm = ({
const {
handleSubmit,
register,
setValue,
watch,
control,
reset,
@ -81,6 +82,8 @@ export const UserForm = ({
const [open, setOpen] = useState(false);
const [locked, setLocked] = useState(isLocked);
setValue("requiredActions", user?.requiredActions || []);
const unLockUser = async () => {
try {
await adminClient.attackDetection.del({ id: user!.id! });

View file

@ -88,6 +88,7 @@ export const ResetPasswordDialog = ({
value: password,
},
});
user.requiredActions = ["UPDATE_PASSWORD"];
const credentials = await adminClient.users.getCredentials({
id: user.id!,
});