Skip to content

Commit 08e8eaa

Browse files
author
Nagico
committed
fix: 更新找回密码接口数据格式
1 parent e68d350 commit 08e8eaa

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)