From 3d16b1519c1331e9d392c102436e9b208dc3eba2 Mon Sep 17 00:00:00 2001 From: elweyn Date: Wed, 27 Oct 2021 15:06:38 +0200 Subject: [PATCH 1/3] Documentation on the coin creation and the steps to have the accounts to do create the currency. --- docu/create-coins-as-admin.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docu/create-coins-as-admin.md diff --git a/docu/create-coins-as-admin.md b/docu/create-coins-as-admin.md new file mode 100644 index 000000000..e496a27f9 --- /dev/null +++ b/docu/create-coins-as-admin.md @@ -0,0 +1,19 @@ +### User creation +A user needs to be created on the login_server we do this when we create a User in the client https://$community_domain/vue/register. + +### Admin user +To set a User admin we need the following SQL query on the gradido_login database: +``` +INSERT INTO user_roles (id, user_id, role_id) VALUES (NULL, '1', '1'); +``` +user_id has to be found in users +Now when we login in on https://$community_domain/account/ we can create coins but we will be restricted cause we can't sign the creations. + +### Signation account +To add a signation account we need to go on the following url: http://$community_domain/server-users/add + +### Coin creation process +The coin creation for work is done in the following url: http://$community_domain/transaction-creations/create-multi +Where we can create coins for a number of as many users as we want excepted for our self. + +Pending_tasks table is used to store the transactions that can't be fulfilled. \ No newline at end of file From ff5a7846fc595b0cc621de8f5447dce6fc4df5f5 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Sun, 31 Oct 2021 20:57:42 +0100 Subject: [PATCH 2/3] add some lines --- docu/create-coins-as-admin.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docu/create-coins-as-admin.md b/docu/create-coins-as-admin.md index e496a27f9..6942bde04 100644 --- a/docu/create-coins-as-admin.md +++ b/docu/create-coins-as-admin.md @@ -10,10 +10,20 @@ user_id has to be found in users Now when we login in on https://$community_domain/account/ we can create coins but we will be restricted cause we can't sign the creations. ### Signation account +At first we need to enable the server user account creation with uncommenting line: 19 in +community_server/src/Controller/ServerUsersController.php +```php +$this->Auth->allow(['add', 'edit']); +``` +This enable us to use this action without being logged in. To add a signation account we need to go on the following url: http://$community_domain/server-users/add ### Coin creation process The coin creation for work is done in the following url: http://$community_domain/transaction-creations/create-multi Where we can create coins for a number of as many users as we want excepted for our self. +We must than sign the transaction. Normally after klick of the left Button (Transaktion abschließen) it should be automatic +forwarding to http://$community_domain/account/checkTransactions to sign the transactions. +If not this page can also be reached by klicking on the shield-icon with the hook in it on the Dashboard. +Only shown if at least one transaction is waiting for signing. -Pending_tasks table is used to store the transactions that can't be fulfilled. \ No newline at end of file +Pending_tasks table is used to store the transactions which not signed or had errors \ No newline at end of file From e1d9454645cb958c665d9fcb6756c1d34f947c72 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Mon, 1 Nov 2021 10:25:31 +0100 Subject: [PATCH 3/3] Update docu/create-coins-as-admin.md Co-authored-by: Ulf Gebhardt --- docu/create-coins-as-admin.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docu/create-coins-as-admin.md b/docu/create-coins-as-admin.md index 6942bde04..6a95df119 100644 --- a/docu/create-coins-as-admin.md +++ b/docu/create-coins-as-admin.md @@ -21,9 +21,7 @@ To add a signation account we need to go on the following url: http://$community ### Coin creation process The coin creation for work is done in the following url: http://$community_domain/transaction-creations/create-multi Where we can create coins for a number of as many users as we want excepted for our self. -We must than sign the transaction. Normally after klick of the left Button (Transaktion abschließen) it should be automatic -forwarding to http://$community_domain/account/checkTransactions to sign the transactions. -If not this page can also be reached by klicking on the shield-icon with the hook in it on the Dashboard. -Only shown if at least one transaction is waiting for signing. +Furthermore we must sign the transactions we created. Normally after clicking on the left button (Transaktion abschließen) we should be automatically forwarded to http://$community_domain/account/checkTransactions where we can do this. +If not this page can also be reached by clicking on the shield-icon with the hook in it on the Dashboard, which is only shown if at least one transaction is waiting for signing. -Pending_tasks table is used to store the transactions which not signed or had errors \ No newline at end of file +For debug purposes you can check the `pending_tasks` table, which is used to store the transactions which are not signed yet or had errors. \ No newline at end of file