mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
removed println statements
This commit is contained in:
parent
de2082469d
commit
58e8bd4af9
@ -530,19 +530,14 @@ impl Server {
|
||||
// Valid player
|
||||
ClientMsg::Register { player, password } if player.is_valid() => {
|
||||
if let Some(pass) = accounts.get(&player.alias) {
|
||||
println!("Verifying {} with {} against {}",
|
||||
player.alias, password, pass);
|
||||
if pass != &password {
|
||||
client.error_state(RequestStateError::Denied);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
||||
println!("Adding user {} with password {}",
|
||||
player.alias, password);
|
||||
accounts.insert(player.alias.clone(), password);
|
||||
}
|
||||
println!("{:?}", accounts);
|
||||
match client.client_state {
|
||||
ClientState::Connected => {
|
||||
Self::initialize_player(state, entity, client, player);
|
||||
|
Loading…
Reference in New Issue
Block a user