Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Re: NZBGet WebGUI Password?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-09-20
04:03 AM
2010-09-20
04:03 AM
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
Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-07-28
01:18 PM
2011-07-28
01:18 PM
Re: NZBGet WebGUI Password?
Hi Mitch,
Were you able to let NZBGet ask for user password?
Thanks,
Dave
Were you able to let NZBGet ask for user password?
Thanks,
Dave
Message 2 of 3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-07-28
02:39 PM
2011-07-28
02:39 PM
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:
To:
That did the trick for me!
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