промежуточный. проход редактирования учетной записи админом

This commit is contained in:
2025-02-19 00:41:55 +03:00
parent 5046d84b86
commit 7eba13370d
7 changed files with 48 additions and 19 deletions

View File

@@ -345,6 +345,10 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
void ReceiveCredentialsDatabase() throws Exception{
response.object = Utils_.fileToBytes(credentials_db.getFile());
}
void EditUserAccount() throws Exception{
UserAccount new_object = (UserAccount) request.object;
credentials_db.UpdateWithCheck(new_object);
}
//--
@Override
protected void UnsafeSession() throws Exception {
@@ -381,6 +385,9 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
@Override
protected void Session() throws Exception {
switch (code) {
case EditUserAccount:
EditUserAccount();
break;
case ReceiveCredentialsDatabase:
ReceiveCredentialsDatabase();
break;