Can send requests to server

This commit is contained in:
2021-05-11 19:03:19 +02:00
parent e9c631e78a
commit b1929fc21f
6 changed files with 116 additions and 35 deletions

View File

@ -21,6 +21,7 @@ import {
import LockOutlinedIcon from "@material-ui/icons/LockOutlined";
import React from "react";
import { AccountHelper } from "../../helpers/AccountHelper";
import { matAlert } from "../widgets/DialogsProvider";
function Copyright() {
@ -63,7 +64,9 @@ export class LoginRoute extends React.Component<{}, LoginRouteState> {
if (!this.canSubmit) return;
matAlert("good");
AccountHelper.getAuthOptions(this.state.currEmail).then((r) =>
matAlert("reset token => " + r.reset_token)
);
}
render() {
@ -97,7 +100,7 @@ export class LoginRoute extends React.Component<{}, LoginRouteState> {
<Typography
component="h1"
variant="h5"
style={{ margin: "10px" }}
style={{ margin: "10px", marginBottom: "50px" }}
>
Comunic Console
</Typography>