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:
@ -530,19 +530,14 @@ impl Server {
|
|||||||
// Valid player
|
// Valid player
|
||||||
ClientMsg::Register { player, password } if player.is_valid() => {
|
ClientMsg::Register { player, password } if player.is_valid() => {
|
||||||
if let Some(pass) = accounts.get(&player.alias) {
|
if let Some(pass) = accounts.get(&player.alias) {
|
||||||
println!("Verifying {} with {} against {}",
|
|
||||||
player.alias, password, pass);
|
|
||||||
if pass != &password {
|
if pass != &password {
|
||||||
client.error_state(RequestStateError::Denied);
|
client.error_state(RequestStateError::Denied);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
println!("Adding user {} with password {}",
|
|
||||||
player.alias, password);
|
player.alias, password);
|
||||||
accounts.insert(player.alias.clone(), password);
|
accounts.insert(player.alias.clone(), password);
|
||||||
}
|
}
|
||||||
println!("{:?}", accounts);
|
|
||||||
match client.client_state {
|
match client.client_state {
|
||||||
ClientState::Connected => {
|
ClientState::Connected => {
|
||||||
Self::initialize_player(state, entity, client, player);
|
Self::initialize_player(state, entity, client, player);
|
||||||
|
Reference in New Issue
Block a user