Commit 12be5606 by zhanghaozhe

forgot password

parent 98a753fe
...@@ -79,7 +79,7 @@ class VeriCodeInput extends Component { ...@@ -79,7 +79,7 @@ class VeriCodeInput extends Component {
} }
sendSMS = () => { sendSMS = () => {
const {action, tel, account, challenge} = this.props const {action, tel, account, challenge, checking} = this.props
if (!tel && !account) { if (!tel && !account) {
Toast.info('请输入手机号或邮箱地址') Toast.info('请输入手机号或邮箱地址')
return return
...@@ -87,7 +87,8 @@ class VeriCodeInput extends Component { ...@@ -87,7 +87,8 @@ class VeriCodeInput extends Component {
http.post(`${API['passport-api']}/quick_sms`, { http.post(`${API['passport-api']}/quick_sms`, {
phone_num: tel || account, phone_num: tel || account,
action: action || 'login', action: action || 'login',
challenge challenge,
checking
}).then(res => { }).then(res => {
if (res.data.errno === 0) { if (res.data.errno === 0) {
Toast.info('验证码发送成功', 2, null, false) Toast.info('验证码发送成功', 2, null, false)
...@@ -136,7 +137,7 @@ class VeriCodeInput extends Component { ...@@ -136,7 +137,7 @@ class VeriCodeInput extends Component {
} }
render() { render() {
let { className, ...rest} = this.props let {className, ...rest} = this.props
return ( return (
<Input <Input
type={'number'} type={'number'}
......
...@@ -80,6 +80,8 @@ class ForgotPassword extends Component { ...@@ -80,6 +80,8 @@ class ForgotPassword extends Component {
account={values.account} account={values.account}
challenge={this.state.validate} challenge={this.state.validate}
instance={this.state.captchaInstance} instance={this.state.captchaInstance}
action={'auth'}
checking={1}
/> />
) )
}} }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment