This commit is contained in:
Untone 2023-11-30 14:24:34 +03:00
parent e80a5d9d6d
commit d479863a63
9 changed files with 0 additions and 76 deletions

View File

@ -1,22 +0,0 @@
name: 'deploy'
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get Repo Name
id: repo_name
run: echo "::set-output name=repo::$(echo ${GITHUB_REPOSITORY##*/})"
- name: Push to dokku
uses: dokku/github-action@master
with:
branch: 'main'
git_remote_url: 'ssh://dokku@staging.discours.io:22/${{ steps.repo_name.outputs.repo }}'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}

View File

@ -229,21 +229,6 @@ mutation Logout {
} }
} }
mutation CreateUser {
_create_user(
params: {
email: "test@domain.com",
password: "<bcrypt-hashed-password>",
nickname: "test",
}
) {
id
email
roles
}
}
mutation UpdateUser { mutation UpdateUser {
_update_user( _update_user(
params: { params: {

View File

@ -1,6 +1,3 @@
This repo is with CI/CD Gitea needs and fetch.conf for fetch-daemon service
<p align="center"> <p align="center">
<a href="https://authorizer.dev"> <a href="https://authorizer.dev">
<img alt="Logo" src="https://authorizer.dev/images/logo.png" width="60" /> <img alt="Logo" src="https://authorizer.dev/images/logo.png" width="60" />

View File

@ -113,13 +113,6 @@ const EditUserModal = ({
status: 'success', status: 'success',
position: 'top-right', position: 'top-right',
}); });
} else if (res.data?._create_user?.id) {
toast({
title: 'User created successfully',
isClosable: true,
status: 'success',
position: 'top-right',
});
} }
onClose(); onClose();
updateUserList(); updateUserList();

View File

@ -38,14 +38,6 @@ export const UpdateUser = `
} }
`; `;
export const CreateUser = `
mutation createUser($params: CreateUserInput!) {
_create_user(params: $params) {
id
}
}
`;
export const DeleteUser = ` export const DeleteUser = `
mutation deleteUser($params: DeleteUserInput!) { mutation deleteUser($params: DeleteUserInput!) {
_delete_user(params: $params) { _delete_user(params: $params) {

View File

@ -189,13 +189,6 @@ export default function Users() {
status: 'success', status: 'success',
position: 'top-right', position: 'top-right',
}); });
} else if (res.data?._create_user?.id) {
toast({
title: 'User verification successful',
isClosable: true,
status: 'success',
position: 'top-right',
});
} }
updateUserList(); updateUserList();
}; };
@ -279,17 +272,6 @@ export default function Users() {
}); });
updateUserList(); updateUserList();
return; 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({ toast({
title: 'Multi factor authentication update failed for user', title: 'Multi factor authentication update failed for user',

View File

@ -1 +0,0 @@
https://github.com/authorizerdev/authorizer

View File

@ -1 +0,0 @@
package graph

View File

@ -1 +0,0 @@
package model