From b0027032a47c7d5a01f1a55cf2e7590ff661dcb1 Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Wed, 25 Oct 2023 22:57:36 -0400 Subject: [PATCH] Rename the password field to be compatible with 1Password --- file-service/src/handlers.rs | 2 +- file-service/src/pages.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/file-service/src/handlers.rs b/file-service/src/handlers.rs index 96478df..d28623b 100644 --- a/file-service/src/handlers.rs +++ b/file-service/src/handlers.rs @@ -87,7 +87,7 @@ pub async fn handle_auth( app: App, form: HashMap, ) -> Result, Error> { - match form.get("token") { + match form.get("password") { Some(token) => match app.authenticate(AuthToken::from(token.clone())).await { Ok(Some(session_token)) => Response::builder() .header("location", "/") diff --git a/file-service/src/pages.rs b/file-service/src/pages.rs index 65997e3..977f54f 100644 --- a/file-service/src/pages.rs +++ b/file-service/src/pages.rs @@ -25,7 +25,7 @@ pub fn auth(_message: Option) -> build_html::HtmlPage { Container::new(ContainerType::Div) .with_attributes([("class", "authentication-form__input")]) .with_html( - Input::new("token", "token") + Input::new("password", "password") .with_id("for-token-input") .with_attributes([("size", "50")]), ),