Improve Authentication
This commit is contained in:
1 parent
d0a8790d7b
commit
ea0128c50b
11 files changed
+362
-32
No files matched your search
@@ -33,10 +33,7 @@ impl<'a> ClientPacket for CLoginSuccess<'a> {
|
||||
bytebuf.put_list::<Property>(self.properties, |p, v| {
|
||||
p.put_string(&v.name);
|
||||
p.put_string(&v.value);
|
||||
// has signature ?
|
||||
// todo: for some reason we get "got too many bytes error when using a signature"
|
||||
p.put_bool(false);
|
||||
// p.put_option(&v.signature, |p,v| p.put_string(v));
|
||||
p.put_option(&v.signature, |p, v| p.put_string(v));
|
||||
});
|
||||
bytebuf.put_bool(self.strict_error_handling);
|
||||
}
|
||||
|
||||
@@ -34,10 +34,7 @@ impl<'a> ClientPacket for CPlayerInfoUpdate<'a> {
|
||||
p.put_list::<Property>(properties, |p, v| {
|
||||
p.put_string(&v.name);
|
||||
p.put_string(&v.value);
|
||||
// has signature ?
|
||||
// todo: for some reason we get "got too many bytes error when using a signature"
|
||||
p.put_bool(false);
|
||||
// todo signature
|
||||
p.put_option(&v.signature, |p, v| p.put_string(v));
|
||||
});
|
||||
}
|
||||
PlayerAction::InitializeChat(_) => todo!(),
|
||||
|
||||
Reference in new issue
Block a user