From 7f041df3f211042a807da0b501d1a66df7522f6e Mon Sep 17 00:00:00 2001 From: zzzdong Date: Wed, 14 Apr 2021 18:49:06 +0800 Subject: [PATCH] fix: user login request should remove its own prefix option (#1701) Co-authored-by: zzzdong --- web/src/pages/User/components/LoginMethodPassword.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/src/pages/User/components/LoginMethodPassword.tsx b/web/src/pages/User/components/LoginMethodPassword.tsx index 1ed770860a..10176a4c09 100644 --- a/web/src/pages/User/components/LoginMethodPassword.tsx +++ b/web/src/pages/User/components/LoginMethodPassword.tsx @@ -102,10 +102,9 @@ const LoginMethodPassword: UserModule.LoginMethod = { submit: async ({ username, password }) => { if (username !== '' && password !== '') { try { - const result = await request('/apisix/admin/user/login', { + const result = await request('/user/login', { method: 'POST', requestType: 'json', - prefix: '', data: { username, password,