feat: support hashed password (#283)

This commit is contained in:
sigoden
2023-11-04 18:12:58 +08:00
committed by GitHub
parent 80ac9afe68
commit d3de3db0d9
6 changed files with 112 additions and 19 deletions

View File

@@ -1037,7 +1037,7 @@ impl Server {
fn auth_reject(&self, res: &mut Response) -> Result<()> {
set_webdav_headers(res);
res.headers_mut()
.append(WWW_AUTHENTICATE, www_authenticate()?);
.append(WWW_AUTHENTICATE, www_authenticate(&self.args)?);
// set 401 to make the browser pop up the login box
*res.status_mut() = StatusCode::UNAUTHORIZED;
Ok(())