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

Add logout (sign out) link on the page when using Apache htpasswd authentication #227

Open
2mstorm opened this issue Feb 4, 2023 · 0 comments

Comments

@2mstorm
Copy link

2mstorm commented Feb 4, 2023

Is your feature request related to a problem? Please describe.
When I use htpasswd authentication in Apache to protect AWStats report so it requires password, there is no easy way to log out

Describe the solution you'd like
I found that in order to log out in this case I have to visit link https://logout:[email protected]/ where example.com would be replaced by the domain the awstats is setup on. This is based on (https://stackoverflow.com/questions/1163868/how-to-logout-when-using-htaccess-and-htpasswd-authentication)

It would be nice if the link https://logout:[email protected]/ is included on the AWStats report page under Sign Out, (like
Sign Out)
and then the users can turn on and off option to show link in the config for the AWStats for that domain

I made this work by editing awstats.pl file and adding the line
print "<a href="https://logout:logout\@mydomain.com/awstats/awstats.pl\">Sign Out";
in the HTMLTopBanner function
When I click on the link, my browser forgets the username and password I used to authenticate

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