NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Mitch72
Sep 20, 2010Aspirant
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:
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
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
2 Replies
Replies have been turned off for this discussion
- dendaveAspirantHi Mitch,
Were you able to let NZBGet ask for user password?
Thanks,
Dave - dendaveAspirantThink 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!
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!