perara / wg-manager

A easy to use WireGuard dashboard and management tool
MIT License
594 stars 74 forks source link

cant login with user: admin, password: admin. #9

Closed 2L3R4 closed 4 years ago

2L3R4 commented 4 years ago

expected behavior: show the dashboard, or watever is shown after login actual bahavior: "nothing" (it stays on the login page, no errors shown) on client side; error in server console serverlog.txt new-serverlog.txt

perara commented 4 years ago

I'm not able to reproduce. My steps:

  1. ng build
  2. Copy dist to build directory in backend.
  3. Delete database.db
  4. Start backend
  5. Start frontend and login (Works OK) Are these similar to your approach?

The process of creating a user should be straight forward, defined in main.py#L41

2L3R4 commented 4 years ago

I edited main.py L43 +L.44 (replace os.getenv(...) with just "admin"); it looks like the code cant get enviroment variables. (only me?), It now works

perara commented 4 years ago

Perhaps I should make it a requirement to include env variables so that it is more obvious something is wrong. Thanks for the discovery :)