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
3d1032bd
Commit
3d1032bd
authored
Aug 19, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
忘记密码
parent
4c0c60a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/components/passport/setPassword/index.js
+3
-2
No files found.
src/components/passport/setPassword/index.js
View file @
3d1032bd
...
...
@@ -98,8 +98,9 @@ const formikConfig = {
function
forgotPasswordReset
(
values
,
props
)
{
let
key
=
sessionStorage
.
getItem
(
'r_type'
)
===
'email'
?
'email'
:
'tel'
http
.
post
(
`
${
API
[
'passport-api'
]}
/account/up_pass_by_
${
key
===
'email'
?
'email'
:
'phone'
}
`
,
{
[
key
]:
sessionStorage
.
getItem
(
key
),
let
requestKey
=
key
===
'email'
?
'email'
:
'phone'
http
.
post
(
`
${
API
[
'passport-api'
]}
/account/up_pass_by_
${
requestKey
}
`
,
{
[
requestKey
]:
sessionStorage
.
getItem
(
key
),
password
:
encrypt
(
values
.
password
)
})
.
then
(
res
=>
{
...
...
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