mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59:02 +03:00
fix: unexpected public auth asking for login info (#583)
This commit is contained in:
@@ -203,12 +203,7 @@ impl Server {
|
|||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
if method.as_str() == "CHECKAUTH" {
|
if method.as_str() == "CHECKAUTH" {
|
||||||
match user.clone() {
|
*res.body_mut() = body_full(user.clone().unwrap_or_default());
|
||||||
Some(user) => {
|
|
||||||
*res.body_mut() = body_full(user);
|
|
||||||
}
|
|
||||||
None => self.auth_reject(&mut res)?,
|
|
||||||
}
|
|
||||||
return Ok(res);
|
return Ok(res);
|
||||||
} else if method.as_str() == "LOGOUT" {
|
} else if method.as_str() == "LOGOUT" {
|
||||||
self.auth_reject(&mut res)?;
|
self.auth_reject(&mut res)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user