Commit 9b0ec8ed by SHLE1

fix: use post for email binding

parent b2232f43
......@@ -109,8 +109,9 @@ export async function bindEmail(
email: string,
code: string
): Promise<ApiResponse> {
const res = await api.get('/api/oauth/email/bind', {
params: { email, code },
const res = await api.post('/api/oauth/email/bind', {
email,
code,
})
return res.data
}
......@@ -85,7 +85,10 @@ export async function bindEmail(
email: string,
code: string
): Promise<ApiResponse> {
const res = await api.get(`/api/oauth/email/bind?email=${email}&code=${code}`)
const res = await api.post('/api/oauth/email/bind', {
email,
code,
})
return res.data
}
......
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 sign in to comment