|
|
|
@ -3,9 +3,13 @@ import React, {Component} from 'react';
|
|
|
|
|
import {BrowserRouter as Router, Route, Link, Switch} from "react-router-dom";
|
|
|
|
|
|
|
|
|
|
import {getImageUrl, DragValidator} from 'educoder';
|
|
|
|
|
import DragValidatortwo from '../../../src/common/components/DragValidatortwo'
|
|
|
|
|
|
|
|
|
|
import {Tabs, Input, Checkbox, Button, notification} from 'antd';
|
|
|
|
|
|
|
|
|
|
import DragValidatortwo from '../../../src/common/components/DragValidatortwo'
|
|
|
|
|
|
|
|
|
|
import ReadPassword from './ReadPassword';
|
|
|
|
|
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import './common.css'
|
|
|
|
|
|
|
|
|
@ -150,6 +154,9 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
}
|
|
|
|
|
//找回密码
|
|
|
|
|
Retrievepassword = () => {
|
|
|
|
|
this.setState({
|
|
|
|
|
modalsType:true
|
|
|
|
|
})
|
|
|
|
|
if (this.state.Phonenumberisnotcobool === false) {
|
|
|
|
|
if (this.state.login.length === 0) {
|
|
|
|
|
this.setState({
|
|
|
|
@ -221,8 +228,9 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.openNotification("找回密码成功,请重新登入。");
|
|
|
|
|
window.location.href = "/login"
|
|
|
|
|
this.setState({
|
|
|
|
|
modalsType:true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|