[GH-ISSUE #514] Pass configuration to frontend #187

Closed
opened 2026-02-27 08:15:46 +03:00 by kerem · 1 comment
Owner

Originally created by @pixelrazor on GitHub (Mar 29, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/514

Currently, the frontend has no knowledge of the config. This leads to awkward things such as probing the backend to determine if password reset is enabled. Frontend configuration would also help solve #400, #247, and maybe #352

A proposed idea is to use the main.js file as a template, fill it in with a static json config object, and use that in the frontend (either passing it in to the main function, or using wasm_bindgen). A basic template should be good

Originally created by @pixelrazor on GitHub (Mar 29, 2023). Original GitHub issue: https://github.com/lldap/lldap/issues/514 Currently, the frontend has no knowledge of the config. This leads to awkward things such as probing the backend to determine if password reset is enabled. Frontend configuration would also help solve #400, #247, and maybe #352 A proposed idea is to use the main.js file as a template, fill it in with a static json config object, and use that in the frontend (either passing it in to the main function, or using wasm_bindgen). [A basic template](https://docs.rs/text-template/latest/text_template/) should be good
kerem 2026-02-27 08:15:46 +03:00
Author
Owner

@nitnelave commented on GitHub (Oct 30, 2024):

That or query a /settings endpoint returning a json. It might be simpler.

<!-- gh-comment-id:2447306729 --> @nitnelave commented on GitHub (Oct 30, 2024): That or query a /settings endpoint returning a json. It might be simpler.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#187
No description provided.