Remove wrong hardcoded url.

master
Tom Hacohen 4 years ago
parent f28d4f6af0
commit 1877afca50

@ -25,7 +25,6 @@ export default function LoginGate() {
const [fetchError, setFetchError] = React.useState<Error>();
async function onFormSubmit(username: string, password: string, serviceApiUrl?: string) {
serviceApiUrl = serviceApiUrl ? serviceApiUrl : C.serviceApiBase;
try {
setFetchError(undefined);
const ret = login(username, password, serviceApiUrl);

@ -8,5 +8,3 @@ export const sourceCode = "https://github.com/etesync/etesync-web";
export const reportIssue = sourceCode + "/issues";
export const forgotPassword = "https://www.etesync.com/accounts/password/reset/";
export const serviceApiBase = process.env.REACT_APP_DEFAULT_API_PATH || "https://api.etesync.com/";

@ -23,7 +23,7 @@ export const logout = createAction(
export const login = createAction(
"LOGIN",
async (username: string, password: string, server: string) => {
async (username: string, password: string, server: string | undefined) => {
const etebase = await Etebase.Account.login(username, password, server);
return etebase.save();
}

Loading…
Cancel
Save