fix: use post for email binding
This commit is contained in:
parent
b2232f4355
commit
9b0ec8ed48
5
web/default/src/features/auth/api.ts
vendored
5
web/default/src/features/auth/api.ts
vendored
@ -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
|
||||
}
|
||||
|
||||
5
web/default/src/features/profile/api.ts
vendored
5
web/default/src/features/profile/api.ts
vendored
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user