Allow fixed homeserver (#142)

This commit is contained in:
Dirk Klimpel 2021-05-18 12:39:53 +02:00 committed by GitHub
parent 3ea1f51eb5
commit e19c34324b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 3 deletions

View file

@ -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",