You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2021/04/14 10:49:13 UTC

[apisix-dashboard] branch master updated: fix: user login request should remove its own prefix option (#1701)

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 7f041df  fix: user login request should remove its own prefix option (#1701)
7f041df is described below

commit 7f041df3f211042a807da0b501d1a66df7522f6e
Author: zzzdong <ku...@gmail.com>
AuthorDate: Wed Apr 14 18:49:06 2021 +0800

    fix: user login request should remove its own prefix option (#1701)
    
    Co-authored-by: zzzdong <ku...@163.com>
---
 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 1ed7708..10176a4 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,