Rename the password field to be compatible with 1Password
This commit is contained in:
parent
41bbfa14f3
commit
b0027032a4
|
@ -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", "/")
|
||||
|
|
|
@ -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")]),
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue