--- a/rust/hedgewars-server/src/server/io.rs Thu Dec 26 21:55:51 2019 +0300
+++ b/rust/hedgewars-server/src/server/io.rs Fri Dec 27 22:36:19 2019 +0300
@@ -61,6 +61,18 @@
}
}
+ IoTask::GetCheckerAccount { nick, password } => {
+ match db.get_checker_account(&nick, &password) {
+ Ok(is_registered) => IoResult::CheckerAccount { is_registered },
+ Err(e) => {
+ warn!("Unable to get checker account data: {}", e);
+ IoResult::CheckerAccount {
+ is_registered: false,
+ }
+ }
+ }
+ }
+
IoTask::GetReplay { id } => {
let result = match db.get_replay_name(id) {
Ok(Some(filename)) => {