implement removeLoginBlock rpc

This commit is contained in:
ansuz
2018-06-19 17:17:56 +02:00
parent 577dea4c75
commit cb5fa72dba
8 changed files with 56 additions and 4 deletions

9
rpc.js
View File

@@ -1859,9 +1859,12 @@ RPC.create = function (
Respond(e);
});
case 'REMOVE_LOGIN_BLOCK':
return void removeLoginBlock(Env, msg, function (e) {
// TODO handle response
e = e;
return void removeLoginBlock(Env, msg[1], function (e) {
if (e) {
WARN(e, 'REMOVE_LOGIN_BLOCK');
return void Respond(e);
}
Respond(e);
});
default:
return void Respond('UNSUPPORTED_RPC_CALL', msg);