Skip to content

Commit

Permalink
fix: user login request should remove its own prefix option
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzdong committed Apr 6, 2021
1 parent 846f2c1 commit c70d8e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/src/pages/User/components/LoginMethodPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c70d8e6

Please sign in to comment.