Skip to content

Commit

Permalink
Update invalid password check, fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
cpdt committed Aug 8, 2022
1 parent a1e9254 commit 3104d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion northstar-rcon-client/src/inner_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl TryFrom<crate::protocol::Response> 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)
Expand Down

0 comments on commit 3104d0e

Please sign in to comment.