Skip to content

Commit f44509b

Browse files
authored
Merge pull request #192 from Nagico/fix/reset_password
更新找回密码接口数据格式
2 parents e68d350 + 08e8eaa commit f44509b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/apis/auth.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,16 @@ export const requestResetPasswordToken = (data: { email: string }) => {
137137
export interface ResetPasswordResponse {}
138138

139139
export const requestResetPassword = (data: {
140+
email: string
140141
token: string
141142
password: string
142143
}) => {
143144
return jsonRequest<Response<ResetPasswordResponse>>('/user/password/reset', {
144145
method: 'POST',
145-
json: data,
146+
json: {
147+
email: data.email,
148+
active_code: data.token,
149+
password: data.password,
150+
},
146151
})
147152
}

0 commit comments

Comments
 (0)