fixed bug (#27145)
Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com> Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
parent
e31257a314
commit
62c402872a
2 changed files with 4 additions and 0 deletions
|
@ -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! });
|
||||
|
|
|
@ -88,6 +88,7 @@ export const ResetPasswordDialog = ({
|
|||
value: password,
|
||||
},
|
||||
});
|
||||
user.requiredActions = ["UPDATE_PASSWORD"];
|
||||
const credentials = await adminClient.users.getCredentials({
|
||||
id: user.id!,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue