mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +00:00
remove old notation for transaction counter, commit missing doc update
This commit is contained in:
parent
a68cad4b87
commit
8368fadc1b
@ -81,4 +81,30 @@ data: {"session_id": -127182}
|
|||||||
Wenn alles okay ist erhältst du:
|
Wenn alles okay ist erhältst du:
|
||||||
```json
|
```json
|
||||||
{"state":"success"}
|
{"state":"success"}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Update User Data
|
||||||
|
Update first name, last name, user language and enable/disable user
|
||||||
|
Language currently supported de and en
|
||||||
|
User will be disabled if he wants a account delete but has transactions.
|
||||||
|
Until transactions are saved in real blockchain, we need this data because the public key
|
||||||
|
is in db only saved in state_users so we wenn delete this entry, validating all transactions not longer possible.
|
||||||
|
Disabled User cannot login and cannot receive transactions.
|
||||||
|
In update Object only one of the sets needs to be there.
|
||||||
|
|
||||||
|
POST http://localhost/login_api/updateUserInfos
|
||||||
|
```json
|
||||||
|
{"session_id": -127182, "email": "max.musterman@gmail.de", "update": {
|
||||||
|
"User.first_name": "Dario",
|
||||||
|
"User.last_name" : "Rekowski",
|
||||||
|
"User.disabled": 0,
|
||||||
|
"User.language": "de"
|
||||||
|
}}
|
||||||
|
```
|
||||||
|
also valid
|
||||||
|
```json
|
||||||
|
{"session_id": -127182, "email": "max.musterman@gmail.de", "update": {
|
||||||
|
"User.last_name" : "Rekowski"
|
||||||
|
}}
|
||||||
|
```
|
||||||
|
|
||||||
@ -71,15 +71,13 @@ Poco::JSON::Object* JsonGetLogin::handle(Poco::Dynamic::Var params)
|
|||||||
em->addError(new Error("JsonGetLogin::handle", "generic exception calling userModel->getJson: "));
|
em->addError(new Error("JsonGetLogin::handle", "generic exception calling userModel->getJson: "));
|
||||||
em->sendErrorsAsEmail();
|
em->sendErrorsAsEmail();
|
||||||
}
|
}
|
||||||
// use both variants for compatibility reasons, but final version is Transactions.pending
|
|
||||||
result->set("Transaction.pending", session->getProcessingTransactionCount());
|
|
||||||
result->set("Transactions.pending", session->getProcessingTransactionCount());
|
result->set("Transactions.pending", session->getProcessingTransactionCount());
|
||||||
auto executing = observer->getTaskCount(userModel->getEmail(), TASK_OBSERVER_SIGN_TRANSACTION);
|
auto executing = observer->getTaskCount(userModel->getEmail(), TASK_OBSERVER_SIGN_TRANSACTION);
|
||||||
if (executing < 0) {
|
if (executing < 0) {
|
||||||
executing = 0;
|
executing = 0;
|
||||||
}
|
}
|
||||||
// use both variants for compatibility reasons, but final version is Transactions.executing
|
|
||||||
result->set("Transaction.executing", executing);
|
|
||||||
result->set("Transactions.executing", executing);
|
result->set("Transactions.executing", executing);
|
||||||
//printf("pending: %d\n", session->getProcessingTransactionCount());
|
//printf("pending: %d\n", session->getProcessingTransactionCount());
|
||||||
//std::string user_string = userModel->toString();
|
//std::string user_string = userModel->toString();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user