Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
12be5606
Commit
12be5606
authored
Aug 19, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forgot password
parent
98a753fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
src/components/passport/common/veriCodeInput/index.js
+4
-3
src/components/passport/forgotPassword/index.js
+2
-0
No files found.
src/components/passport/common/veriCodeInput/index.js
View file @
12be5606
...
...
@@ -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'
}
...
...
src/components/passport/forgotPassword/index.js
View file @
12be5606
...
...
@@ -80,6 +80,8 @@ class ForgotPassword extends Component {
account
=
{
values
.
account
}
challenge
=
{
this
.
state
.
validate
}
instance
=
{
this
.
state
.
captchaInstance
}
action
=
{
'auth'
}
checking
=
{
1
}
/
>
)
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment