mjpclab / go-http-file-server

Simple command line based HTTP file server to share local file system
MIT License
370 stars 56 forks source link

Suggestion: Logout button #38

Open fimmspin opened 4 months ago

fimmspin commented 4 months ago

Please add a "Logout" button to permit to change current authenticated user.

It could be nice to always see the current logged username on top/right of the page.

marjune163 commented 4 months ago

Since basic auth data is stored in client side, the only way to clear the auth info is to send an "401 Unauthorized" status to client. This results client popup a login dialog box. So currently logout function is not implemented.

marjune163 commented 3 months ago

Version 1.18.1 shows logged in username.