oop
This commit is contained in:
@@ -78,6 +78,7 @@ impl ClientHandler {
|
||||
};
|
||||
check_server_perms(check).await?;
|
||||
let token = account_token(&self.db, info.perms);
|
||||
self.db.account_tokens.insert(&token, &info.perms);
|
||||
reply!(GenerateTokenResp { token });
|
||||
}
|
||||
ClientMsg::CreateAccount(info) => {
|
||||
@@ -201,7 +202,7 @@ impl ClientHandler {
|
||||
break;
|
||||
}
|
||||
}
|
||||
reply!(AddFriendResp::Ok);
|
||||
None
|
||||
}
|
||||
ClientMsg::RequestFriends(_) => {
|
||||
let user = check_user().await?.1;
|
||||
|
||||
Reference in New Issue
Block a user