Commit 12be5606 by zhanghaozhe

forgot password

parent 98a753fe
......@@ -79,7 +79,7 @@ class VeriCodeInput extends Component {
}
sendSMS = () => {
const {action, tel, account, challenge} = this.props
const {action, tel, account, challenge, checking} = this.props
if (!tel && !account) {
Toast.info('请输入手机号或邮箱地址')
return
......@@ -87,7 +87,8 @@ class VeriCodeInput extends Component {
http.post(`${API['passport-api']}/quick_sms`, {
phone_num: tel || account,
action: action || 'login',
challenge
challenge,
checking
}).then(res => {
if (res.data.errno === 0) {
Toast.info('验证码发送成功', 2, null, false)
......@@ -136,7 +137,7 @@ class VeriCodeInput extends Component {
}
render() {
let { className, ...rest} = this.props
let {className, ...rest} = this.props
return (
<Input
type={'number'}
......
......@@ -80,6 +80,8 @@ class ForgotPassword extends Component {
account={values.account}
challenge={this.state.validate}
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