× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

NZBGet WebGUI Password?

Mitch72
Aspirant

NZBGet WebGUI Password?

Has anyone been able to get NZBGet to require a username and password to access the web client?

I've looked at the settings.php file:


// username for web-interface. Leave it blank to disable authorization-check
$webusername = 'user';

// password for web-interface.
$webpassword = 'pass';



and changed "user" and "pass" to my own username and password, but it still doesn't prompt me to access the server.

Any ideas?

Cheers!
Mitch
Message 1 of 3
dendave
Aspirant

Re: NZBGet WebGUI Password?

Hi Mitch,

Were you able to let NZBGet ask for user password?

Thanks,
Dave
Message 2 of 3
dendave
Aspirant

Re: NZBGet WebGUI Password?

Think I solved it myself. Not really familiar with PHP but a search on the internet learned me that REQUEST is not really recommended to use.
You should use POST instead.

So changed login.php from:
$auth_valid = false;

if (isset($_REQUEST['username']) || isset($_REQUEST['password'])) {
$auth_username = $_REQUEST['username'];
$auth_password = $_REQUEST['password'];
} else {
if (isset($_SESSION['auth_username']))
$auth_username = $_SESSION['auth_username'];
if (isset($_SESSION['auth_password']))
$auth_password = $_SESSION['auth_password'];
}


To:
$auth_valid = false;

if (isset($_POST['username']) || isset($_POST['password'])) {
$auth_username = $_REQUEST['username'];
$auth_password = $_REQUEST['password'];
} else {
if (isset($_SESSION['auth_username']))
$auth_username = $_SESSION['auth_username'];
if (isset($_SESSION['auth_password']))
$auth_password = $_SESSION['auth_password'];
}


That did the trick for me!
Message 3 of 3
Top Contributors
Discussion stats
  • 2 replies
  • 6779 views
  • 0 kudos
  • 2 in conversation
Announcements