Commit fb9269ea by zhanghaozhe

绑定手机号

parent c9da436c
......@@ -123,10 +123,10 @@ const formikConfig = {
if (data.errno == 200) {
if (data.data.is_set_pwd) {
console.log('set')
if (data.data['is_set_pwd']) {
props.history.replace(`/passport/set-password`)
}else {
location.assign(data.data.jump_url)
location.assign(data.data['jump_url'])
}
......
......@@ -70,7 +70,7 @@ const formikConfig = {
let key = sessionStorage.getItem('r_type') === 'email' ? 'email' : 'tel'
let encrypted = encrypt(values.password)
http.post(`${api['passport-api']}/up_pass${key === 'tel' && '_by_phone' || ''}`, {
http.post(`${api['passport-api']}/account/up_pass${key === 'tel' && '_by_phone' || ''}`, {
[key]: sessionStorage.getItem(key),
pass: encrypted,
re_pass: encrypted
......
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