diff --git a/src/ts/@overflow/app/views/member/ForgotPassword.tsx b/src/ts/@overflow/app/views/member/ForgotPassword.tsx deleted file mode 100644 index 51664fc..0000000 --- a/src/ts/@overflow/app/views/member/ForgotPassword.tsx +++ /dev/null @@ -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, State> { - public constructor(props?: RouteComponentProps, context?: State) { - super(props, context); - - } - - public render(): JSX.Element { - return ( - - ); - } -} - - -export default ForgotPassword; diff --git a/src/ts/@overflow/member/react/components/SignIn.tsx b/src/ts/@overflow/member/react/components/SignIn.tsx index caa5563..b25897f 100644 --- a/src/ts/@overflow/member/react/components/SignIn.tsx +++ b/src/ts/@overflow/member/react/components/SignIn.tsx @@ -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 { }); // 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, data: ButtonProps):void {