Merge branch 'main' of dev.discours.io:authorizer
Some checks failed
deploy / deploy (push) Failing after 5s
Some checks failed
deploy / deploy (push) Failing after 5s
This commit is contained in:
@@ -113,6 +113,13 @@ const EditUserModal = ({
|
||||
status: 'success',
|
||||
position: 'top-right',
|
||||
});
|
||||
} else if (res.data?._create_user?.id) {
|
||||
toast({
|
||||
title: 'User created successfully',
|
||||
isClosable: true,
|
||||
status: 'success',
|
||||
position: 'top-right',
|
||||
});
|
||||
}
|
||||
onClose();
|
||||
updateUserList();
|
||||
|
@@ -38,6 +38,14 @@ export const UpdateUser = `
|
||||
}
|
||||
`;
|
||||
|
||||
export const CreateUser = `
|
||||
mutation createUser($params: CreateUserInput!) {
|
||||
_create_user(params: $params) {
|
||||
id
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const DeleteUser = `
|
||||
mutation deleteUser($params: DeleteUserInput!) {
|
||||
_delete_user(params: $params) {
|
||||
|
@@ -189,6 +189,13 @@ export default function Users() {
|
||||
status: 'success',
|
||||
position: 'top-right',
|
||||
});
|
||||
} else if (res.data?._create_user?.id) {
|
||||
toast({
|
||||
title: 'User verification successful',
|
||||
isClosable: true,
|
||||
status: 'success',
|
||||
position: 'top-right',
|
||||
});
|
||||
}
|
||||
updateUserList();
|
||||
};
|
||||
@@ -272,6 +279,17 @@ export default function Users() {
|
||||
});
|
||||
updateUserList();
|
||||
return;
|
||||
} else if (res.data?._create_user?.id) {
|
||||
toast({
|
||||
title: `Multi factor authentication ${
|
||||
user.is_multi_factor_auth_enabled ? 'disabled' : 'enabled'
|
||||
} for user`,
|
||||
isClosable: true,
|
||||
status: 'success',
|
||||
position: 'top-right',
|
||||
});
|
||||
updateUserList();
|
||||
return;
|
||||
}
|
||||
toast({
|
||||
title: 'Multi factor authentication update failed for user',
|
||||
|
Reference in New Issue
Block a user