Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid param #623

Open
zhengwei424 opened this issue May 20, 2022 · 0 comments
Open

Invalid param #623

zhengwei424 opened this issue May 20, 2022 · 0 comments

Comments

@zhengwei424
Copy link

解决无法登录的问题
image

  1. 直接使用goland加载后端代码
  2. src/backend/routers/router.go -> plugins我go get不下来,直接注释掉
    image
  3. 罪魁祸首src/backend/controllers/auth/authenticator.go -> 注释并新增
    image
  4. 修改src/backend/conf/app.conf中的mysql部分,注意DBTns修改为自己的mysql服务器地址
    image

启动顺序:
前端和mysql使用docker-compose启动:
docker-compose记得修改配置:wayne/hack/docker-compose/conf/
config.js: 修改URL中的yourip为beego后端服务ip地址
注释掉wayne/hack/docker-compose/docker-compose.yaml中部分配置
image
启动前端和mysql:
cd wayne/hack/docker-compose/
docker-compose up -d

后端修改完成之后,直接go run 启动:
启动方式为:
cd wayne/src/backend/
go run main.go

这样后端就能接收到前端的?username=admin&password=admin了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant