Forgotpassword file delete
This commit is contained in:
parent
5220b23eb3
commit
f0a5c2179f
|
@ -1,24 +0,0 @@
|
|||
import * as React from 'react';
|
||||
import { RouteComponentProps } from 'react-router';
|
||||
import ForgotPasswordContainer from '@overflow/member/react/ForgotPassword';
|
||||
|
||||
export interface Props {
|
||||
}
|
||||
export interface State {
|
||||
}
|
||||
|
||||
class ForgotPassword extends React.Component<RouteComponentProps<Props>, State> {
|
||||
public constructor(props?: RouteComponentProps<Props>, context?: State) {
|
||||
super(props, context);
|
||||
|
||||
}
|
||||
|
||||
public render(): JSX.Element {
|
||||
return (
|
||||
<ForgotPasswordContainer/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export default ForgotPassword;
|
|
@ -11,6 +11,8 @@ import {
|
|||
Header,
|
||||
} from 'semantic-ui-react';
|
||||
|
||||
import 'whatwg-fetch';
|
||||
|
||||
const options = [
|
||||
{ key: 'southkorea', value: '82', text: 'South Korea(82)' },
|
||||
{ key: 'unitedstates', value: '1', text: 'United States(1)' },
|
||||
|
@ -113,6 +115,28 @@ export class SignIn extends React.Component<Props, State> {
|
|||
});
|
||||
|
||||
// Todo Ajax
|
||||
this.testhttp();
|
||||
}
|
||||
|
||||
private async testhttp() {
|
||||
// let httpc: httpm.HttpClient = new httpm.HttpClient('vsts-node-api');
|
||||
// let res:httpm.HttpClientResponse = await httpc.get('http://192.168.1.103:19080/forgot_password?');
|
||||
// let body: string = await res.readBody();
|
||||
// console.log(body, res.message);
|
||||
|
||||
let d: any = await fetch('http://192.168.1.103:19080/account/forgot_password', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
// 'Content-Type': 'text/plain; charset=utf-8',
|
||||
'Accept': 'application/json',
|
||||
// 'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({
|
||||
signinId: 'geek@loafle.com',
|
||||
}),
|
||||
|
||||
});
|
||||
let re: any = await d.json();
|
||||
}
|
||||
|
||||
private signInClick(event: React.SyntheticEvent<HTMLButtonElement>, data: ButtonProps):void {
|
||||
|
|
Loading…
Reference in New Issue
Block a user