We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7974727 commit 24e967cCopy full SHA for 24e967c
1 file changed
src/connection.rs
@@ -263,11 +263,13 @@ async fn socket_auth(
263
let username_msg = read_socket_auth_message(rx).await?;
264
let username = username_msg
265
.to_str()
266
- .map_err(|_| AuthenticationError::InvalidMessage)?;
+ .map_err(|_| AuthenticationError::InvalidMessage)?
267
+ .trim();
268
let password_msg = read_socket_auth_message(rx).await?;
269
let password = password_msg
270
271
272
273
274
// cleanup all pre_auth tokens older than 15s
275
let cutoff = Instant::now() - Duration::from_secs(15);
0 commit comments