From 3104d0e6483a4c8d12f72f416c1a4709e95eb0fe Mon Sep 17 00:00:00 2001 From: cpdt Date: Mon, 8 Aug 2022 22:12:47 +1000 Subject: [PATCH] Update invalid password check, fixes #1 --- northstar-rcon-client/src/inner_client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/northstar-rcon-client/src/inner_client.rs b/northstar-rcon-client/src/inner_client.rs index 856bce7..af0083d 100644 --- a/northstar-rcon-client/src/inner_client.rs +++ b/northstar-rcon-client/src/inner_client.rs @@ -155,7 +155,7 @@ impl TryFrom for Response { match proto_response_type { crate::protocol::Response_t::SERVERDATA_RESPONSE_AUTH => { let message: String = value.responseBuf.ok_or(())?; - let res = if message.contains("Password incorrect") { + let res = if message.contains("Admin password incorrect") { Err(AuthError::InvalidPassword) } else if message.contains("Go away") { Err(AuthError::Banned)