1 pam configuration mistake or one programming mistake in it. However if you can comfortably boot a live usb and fix it, and test it in qemu it should be no problem.
Oh look like pam_time exists…
https://askubuntu.com/questions/631569/pre-scheduled-daily-lock-out-periods
https://linux.die.net/man/8/pam_time
https://linux.die.net/man/5/time.conf
Seems minimal enough.




It doesn’t have to be, just structurally people are incentivized to do this