update: redirect after register
This commit is contained in:
@@ -22,6 +22,7 @@ import { Upload, Icon, message } from 'antd';
|
||||
|
||||
import AutoComplete from './../../components/AutoComplete';
|
||||
import {appConfig} from "../../config/app";
|
||||
import {LINKS} from "../../routes";
|
||||
|
||||
// const province = require("./../../../../assets/data/province.json");
|
||||
// const city = require("./../../../../assets/data/city.json");
|
||||
@@ -156,10 +157,11 @@ class RegisterPage extends React.Component {
|
||||
additional_data: {}
|
||||
};
|
||||
this.authStore.register(data).then(res => {
|
||||
message.success("Please check your email to confirm your account");
|
||||
setTimeout(() => {
|
||||
this.setState({ isLoading: false });
|
||||
message.success("Please check your email to confirm your account");
|
||||
}, 1000);
|
||||
this.props.history.push(LINKS.LOGIN);
|
||||
}, 250);
|
||||
}).catch(err => {
|
||||
this.setState({ isLoading: false });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user