mirror of
https://github.com/webmin/webmin.git
synced 2026-07-25 02:40:37 +01:00
Fix Usermin login URL availability check
ⓘ 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user