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")]), ),