Rename the password field to be compatible with 1Password

This commit is contained in:
Savanni D'Gerinel 2023-10-25 22:57:36 -04:00
parent 41bbfa14f3
commit b0027032a4
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ pub async fn handle_auth(
app: App,
form: HashMap<String, String>,
) -> Result<http::Response<String>, 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", "/")

View File

@ -25,7 +25,7 @@ pub fn auth(_message: Option<String>) -> 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")]),
),