import React from 'react'; import APPCONFIG from 'constants/Config'; import TextField from 'material-ui/TextField'; import QueueAnim from 'rc-queue-anim'; import RaisedButton from 'material-ui/RaisedButton'; import Instance from '../../../components/Connection'; class ForgotPassowrd extends React.Component { constructor() { super(); this.state = { brand: APPCONFIG.brand, email: '', }; this.handleEmail = this.handleEmail.bind(this); } handleEmail = (event) => { this.setState(Object.assign(this.state, { email: event.target.value })); }; clickEvent = (event) => { event.preventDefault(); Instance.setToken(null).post('/v1/passwordreset/request/' + this.state.email).then(function (res) { location.href = '/#/confirm-email'; }).catch(function (err) { location.href = '/#/confirm-email'; }); } render() { return (
); } } const Page = () => (