|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
import React, {Component} from 'react';
|
|
|
|
|
import {getImageUrl,broadcastChannelPostMessage} from 'educoder';
|
|
|
|
|
import {setmiyah,broadcastChannelPostMessage} from 'educoder';
|
|
|
|
|
import {Tabs, Input, Checkbox, Button, notification,Menu} from 'antd';
|
|
|
|
|
import md5 from 'md5';
|
|
|
|
|
import passopen from '../../../src/images/login/passopen.png';
|
|
|
|
|
import passoff from '../../../src/images/login/passoff.png';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
@ -609,23 +608,23 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
};
|
|
|
|
|
//短信验证
|
|
|
|
|
SMSverification = () => {
|
|
|
|
|
const opens ="79e33abd4b6588941ab7622aed1e67e8";
|
|
|
|
|
let newopens=md5(opens+this.state.logins);
|
|
|
|
|
var url = `/accounts/get_verification_code.json`;
|
|
|
|
|
axios.get((url), {
|
|
|
|
|
params: {
|
|
|
|
|
login: this.state.logins,
|
|
|
|
|
type: 1,
|
|
|
|
|
smscode:newopens
|
|
|
|
|
smscode:setmiyah(this.state.logins)
|
|
|
|
|
}
|
|
|
|
|
}).then((result) => {
|
|
|
|
|
//验证有问题{"status":1,"message":"success"}
|
|
|
|
|
// console.log(result);
|
|
|
|
|
this.openNotification("验证码已发送,请注意查收!",2);
|
|
|
|
|
|
|
|
|
|
if(result.data.status===1){
|
|
|
|
|
this.openNotification("验证码已发送,请注意查收!",2);
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
|
|
this.openNotification(result.data.success,2);
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|