diff options
author | Vika <vika@fireburn.ru> | 2024-01-29 07:08:21 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2024-01-29 07:08:21 +0300 |
commit | d36014200549cf73a7f22c6f94fb15bec17823e8 (patch) | |
tree | 6e56f912219c5d20e2768b1f016f23fff22fe83e /src/indieauth | |
parent | ed51d48f7353a5ceefa798ded52d3af465d4d0ec (diff) | |
download | kittybox-d36014200549cf73a7f22c6f94fb15bec17823e8.tar.zst |
lint: no extra whitespace on line endings
Diffstat (limited to 'src/indieauth')
-rw-r--r-- | src/indieauth/backend/fs.rs | 6 | ||||
-rw-r--r-- | src/indieauth/mod.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/indieauth/backend/fs.rs b/src/indieauth/backend/fs.rs index 600e901..80c3703 100644 --- a/src/indieauth/backend/fs.rs +++ b/src/indieauth/backend/fs.rs @@ -25,7 +25,7 @@ impl FileBackend { path: path.into() } } - + /// Sanitize a filename, leaving only alphanumeric characters. /// /// Doesn't allocate a new string unless non-alphanumeric @@ -71,7 +71,7 @@ impl FileBackend { (if has_ext { filename .extension() - + } else { filename .file_name() @@ -337,7 +337,7 @@ impl AuthBackend for FileBackend { let password_filename = self.path .join(FileBackend::url_to_dir(website)) .join("password"); - + let salt = SaltString::generate(&mut OsRng); let argon2 = Argon2::default(); let password_hash = argon2.hash_password(password.as_bytes(), &salt) diff --git a/src/indieauth/mod.rs b/src/indieauth/mod.rs index 0ad2702..def9dfc 100644 --- a/src/indieauth/mod.rs +++ b/src/indieauth/mod.rs @@ -89,7 +89,7 @@ impl <S: Send + Sync, A: AuthBackend> axum::extract::FromRequestParts<S> for Use let Host(host) = Host::from_request_parts(req, state) .await .map_err(|_| IndieAuthResourceError::InvalidRequest)?; - + auth.get_token( &format!("https://{host}/").parse().unwrap(), token.token() |