Allow prefilling of any fields of the login form using GET params (#181)

* Allow prefilling of any fields of the login form using GET params

* update readme
This commit is contained in:
Aine
2024-11-29 19:17:52 +02:00
committed by GitHub
parent 14d1c904c0
commit f4d0e19d21
4 changed files with 68 additions and 7 deletions

View File

@@ -100,6 +100,8 @@ The following changes are already implemented:
* 🔰 [Add "Assign Admin" button to the rooms](https://github.com/etkecc/synapse-admin/pull/156)
* 🖼️ [Add rooms' avatars](https://github.com/etkecc/synapse-admin/pull/158)
* 🤖 [User Badges](https://github.com/etkecc/synapse-admin/pull/160)
* 🔑 [Allow prefilling any fields on the login form via GET params](https://github.com/etkecc/synapse-admin/pull/181)
_the list will be updated as new changes are added_
@@ -111,7 +113,8 @@ _the list will be updated as new changes are added_
This command initializes the development environment (local Synapse server and Postgres DB),
and launches the app in a dev mode at `http://localhost:5173`
After that open `http://localhost:5173` in your browser, login using the following credentials:
After that open [http://localhost:5173](http://localhost:5173?username=admin&password=admin&server=http://localhost:8008] in your browser,
login using the following credentials:
* Login: admin
* Password: admin
@@ -148,13 +151,9 @@ services:
### Prefilling login form
You can prefill `username` and `homeserver` fields on the login page using GET parameters, example:
You can prefill all fields on the login page using GET parameters.
```
https://matrix.example.com/synapse-admin/?username=admin&server=matrix.example.com
```
That way `username` and `homeserver` fields will be pre-filled with `admin` and `https://matrix.example.com` respectively.
[Documentation](./docs/prefill-login-form.md)
### Restricting available homeserver