rejetto / hfs

HFS is a web file server to run on your computer. Share folders or even a single file thanks to the virtual file system.
GNU General Public License v3.0
2.29k stars 227 forks source link

409 unknown error on log in #398

Closed Narzaru closed 1 year ago

Narzaru commented 1 year ago

Config

version: 0.49.2

accounts:
  admin:
    admin: true
    password: admin

open_browser_at_start: false
http_port: 80
localhost_admin: false

To Reproduce

  1. run in the CLI: ./hfs --config ./config.yaml --log ./logs/
  2. try to log in with the following credentials: username - admin, password - admin

Describe the bug

Expected behavior

Environment:

Narzaru commented 1 year ago

I checked, it works at 0.49.0 I did not change the config, except version. The hfs launch command also did not change.

Narzaru commented 1 year ago

Okay, I apologize. It started working on 0.49.2, I don’t know what changed, but it works now.

rejetto commented 1 year ago

hey, with error 409 hfs displays this error at login: Cookies not working - login failed. If I recall correctly, this happens if you log in with https (the cookie is created), and then later try to login with http. The browser doesn't allow http to read the cookie created with https, and also forbid overwritten. This makes our login to fail, because cookie is not working. A possible solution would be for me to use 2 different cookies, but at the moment I'm not sure ask this to my framework. It rarely happens, anyway, so I postponed it.

I think you solved not because you updated but because your cookie was deleted.

rejetto commented 1 year ago

I'm not sure ask this to my framework

i've managed to do it :)