Fix Usermin login URL availability check
Some checks failed
Tests / prove (push) Has been cancelled
Package and upload artifacts / build (push) Has been cancelled
Close inactive / close-inactive (push) Has been cancelled

ⓘ Require a live Usermin miniserv PID before allowing one-time login URL creation, so the feature is only offered when the session backend can actually be used.
This commit is contained in:
Ilia Ross
2026-07-08 00:48:49 +02:00
parent 2fb1a38192
commit 27205bf75a

View File

@@ -939,6 +939,7 @@ sub can_create_usermin_login_url
{
my ($miniserv) = @_;
return $miniserv->{'session'} &&
&check_pid_file($miniserv->{'pidfile'}) &&
defined(&acl::open_session_db) &&
defined(&acl::generate_random_session_id) &&
defined(&reload_usermin_miniserv);