|
|
@ -3,7 +3,7 @@ |
|
|
|
use std::net;
|
|
|
|
|
|
|
|
use rand::{Rng, RngCore};
|
|
|
|
use bcrypt::{DEFAULT_COST, hash, verify};
|
|
|
|
use bcrypt;
|
|
|
|
|
|
|
|
use libpso::packet::login::*;
|
|
|
|
use libpso::{PacketParseError, PSOPacket};
|
|
|
@ -178,8 +178,6 @@ mod test { |
|
|
|
let shared = SharedLoginState::new(TestData {});
|
|
|
|
let mut server = LoginServerState::new(shared);
|
|
|
|
|
|
|
|
//let username: [u8; 16] = utf8_to_array!("testuser", 16);
|
|
|
|
//let password: [u8; 16] = utf8_to_array!("mypassword", 16);
|
|
|
|
let send = server.handle(&RecvLoginPacket::Login(Login {
|
|
|
|
flag: 0,
|
|
|
|
tag: 65536,
|
|
|
|