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 {
|
const {
|
||||||
handleSubmit,
|
handleSubmit,
|
||||||
register,
|
register,
|
||||||
|
setValue,
|
||||||
watch,
|
watch,
|
||||||
control,
|
control,
|
||||||
reset,
|
reset,
|
||||||
|
@ -81,6 +82,8 @@ export const UserForm = ({
|
||||||
const [open, setOpen] = useState(false);
|
const [open, setOpen] = useState(false);
|
||||||
const [locked, setLocked] = useState(isLocked);
|
const [locked, setLocked] = useState(isLocked);
|
||||||
|
|
||||||
|
setValue("requiredActions", user?.requiredActions || []);
|
||||||
|
|
||||||
const unLockUser = async () => {
|
const unLockUser = async () => {
|
||||||
try {
|
try {
|
||||||
await adminClient.attackDetection.del({ id: user!.id! });
|
await adminClient.attackDetection.del({ id: user!.id! });
|
||||||
|
|
|
@ -88,6 +88,7 @@ export const ResetPasswordDialog = ({
|
||||||
value: password,
|
value: password,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
user.requiredActions = ["UPDATE_PASSWORD"];
|
||||||
const credentials = await adminClient.users.getCredentials({
|
const credentials = await adminClient.users.getCredentials({
|
||||||
id: user.id!,
|
id: user.id!,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue