Skip to content

Commit

Permalink
[api] Fix the deletion of the users
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Hassine committed Feb 20, 2020
1 parent 3649f23 commit 2cacbf6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opencti-documentation/docs/installation/auto.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The OVA file is available on the [Luatix Google Drive folder](https://drive.goog

Then open the OVA file with VirtualBox or convert the OVA to another type of virtual machine image and launch it. You can login within the VM or connect in SSH with the default login `opencti` and the default password `opencti`.

> Once the virtual machine is launched, you have access to the plaform using the URL http://{IP_ADDRESS}:8080.
> Once the virtual machine is launched, the **OpenCTI platform can take 3 to 5 minutes to start the first time**. Then you have access to the plaform using the URL **http://{IP_ADDRESS}:8080**.
# Using Docker

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class UserEditionOverviewComponent extends Component {

searchRoles(event) {
fetchQuery(userEditionOverviewRolesSearchQuery, {
search: event.target.value,
search: event && event.target.value !== 0 ? event.target.value : '',
}).then((data) => {
const roles = pipe(
pathOr([], ['roles', 'edges']),
Expand Down
2 changes: 1 addition & 1 deletion opencti-platform/opencti-graphql/src/domain/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,10 @@ export const meEditField = (user, userId, input) => {
return userEditField(user, userId, input);
};
export const userDelete = async userId => {
await deleteEntityById(userId, 'User');
const userToken = await getToken(userId);
await deleteEntityById(userToken.id, 'Token');
await clearAccessCache(userToken.uuid);
await deleteEntityById(userId, 'User');
return userId;
};
export const personDelete = async personId => {
Expand Down

0 comments on commit 2cacbf6

Please sign in to comment.