rust/hedgewars-server/src/server/io.rs
changeset 15554 f1205f33bf5b
parent 15141 febccab419b1
child 15818 2939d8599418
equal deleted inserted replaced
15553:ede5f4ec48f3 15554:f1205f33bf5b
    55                         ) {
    55                         ) {
    56                             Ok(account) => IoResult::Account(account),
    56                             Ok(account) => IoResult::Account(account),
    57                             Err(e) => {
    57                             Err(e) => {
    58                                 warn!("Unable to get account data: {}", e);
    58                                 warn!("Unable to get account data: {}", e);
    59                                 IoResult::Account(None)
    59                                 IoResult::Account(None)
       
    60                             }
       
    61                         }
       
    62                     }
       
    63 
       
    64                     IoTask::GetCheckerAccount { nick, password } => {
       
    65                         match db.get_checker_account(&nick, &password) {
       
    66                             Ok(is_registered) => IoResult::CheckerAccount { is_registered },
       
    67                             Err(e) => {
       
    68                                 warn!("Unable to get checker account data: {}", e);
       
    69                                 IoResult::CheckerAccount {
       
    70                                     is_registered: false,
       
    71                                 }
    60                             }
    72                             }
    61                         }
    73                         }
    62                     }
    74                     }
    63 
    75 
    64                     IoTask::GetReplay { id } => {
    76                     IoTask::GetReplay { id } => {