mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2025-12-10 09:04:55 +00:00
Allow fixed homeserver (#142)
This commit is contained in:
parent
3ea1f51eb5
commit
e19c34324b
4 changed files with 20 additions and 3 deletions
|
|
@ -3,6 +3,9 @@ import { fetchUtils } from "react-admin";
|
|||
const authProvider = {
|
||||
// called when the user attempts to log in
|
||||
login: ({ base_url, username, password }) => {
|
||||
// force homeserver for protection in case the form is manipulated
|
||||
base_url = process.env.REACT_APP_SERVER || base_url;
|
||||
|
||||
console.log("login ");
|
||||
const options = {
|
||||
method: "POST",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue