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

"Remember me for 7 days" doesn't work if you log in from Recent Queries #1777

Closed
squeak9 opened this issue Apr 7, 2021 · 7 comments
Closed

Comments

@squeak9
Copy link

squeak9 commented Apr 7, 2021

Versions

  • Pi-hole: v5.2.4
  • AdminLTE: v5.4
  • FTL: v5.7

Platform

  • OS and version: Raspbian GNU/Linux 9 (stretch)
  • Platform: Raspberry Pi 2

Expected behavior

I tend to mainly visit the Recent Queries of the web interface, I get there by typing pi-hole into my browser history and then it suggests the url to that page and that's how I get there.

If you go to http://192.168.x.x/admin/queries.php, enter your password and check the "Remember me for 7 days" checkbox and log in it should remember you for 7 days.

Actual behavior / bug

If you go to http://192.168.x.x/admin/queries.php and log in then it won't remember you for 7 days, you will only be logged in during the session.

As this reddit post says it works fine if you log in to http://192.168.x.x/admin/index.php?login

Steps to reproduce

Steps to reproduce the behavior:

  1. Open Firefox 87.0 (64-bit) and make a new profile just to be safe.
  2. Enter the URL to to directly to the Recent Queries page of your pi-hole, example: http://192.168.x.x/admin/queries.php
  3. Enter your password.
  4. Check the "Remember me for 7 days" box.
  5. Close Firefox and open it again.
  6. Visit the pi-hole page again. It didn't remember you.
@chrismiceli
Copy link
Contributor

I have created #1870 to attempt to address this. It appears that the cookie was only set if the query contained login, which only happens in the home page login flow which results in a 302 redirect. I don't see why setting this on any login is ill advised.

@chrismiceli
Copy link
Contributor

chrismiceli commented Oct 7, 2021

Can we close this issue now that the merge request was accepted? Or do we wait for devel to be merged to master for an official release @yubiuser , @DL6ER, @PromoFaux? (#1870)

@yubiuser
Copy link
Member

yubiuser commented Oct 7, 2021

I would wait until master

@pralor-bot
Copy link

This issue has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/pi-hole-ftl-v5-11-web-v5-8-and-core-v5-6-released/50566/1

@yubiuser
Copy link
Member

@lutfor-diu
Copy link

i'm also facing this same issue in latest version.

@chrismiceli
Copy link
Contributor

@lutfor-diu I am not able to repro what you suggest. What steps do you take to recreate this issue?

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

No branches or pull requests

5 participants